From 49120f48474fc8fdc2448c75d961bc238213cfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 1 May 2018 14:34:32 +0200 Subject: New upstream version 0.28.2 --- plugins/shotwell-publishing/TumblrPublishing.c | 5336 ++++++++++++++++++++++++ 1 file changed, 5336 insertions(+) create mode 100644 plugins/shotwell-publishing/TumblrPublishing.c (limited to 'plugins/shotwell-publishing/TumblrPublishing.c') diff --git a/plugins/shotwell-publishing/TumblrPublishing.c b/plugins/shotwell-publishing/TumblrPublishing.c new file mode 100644 index 0000000..0a3643f --- /dev/null +++ b/plugins/shotwell-publishing/TumblrPublishing.c @@ -0,0 +1,5336 @@ +/* TumblrPublishing.c generated by valac 0.36.6, 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 +#include +#include +#include +#include +#include +#include +#include "shotwell-plugin-common.h" +#include +#include "shotwell-authenticator.h" +#include +#include +#include +#include +#include +#include +#include +#include + + +#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_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 _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) +#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (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 _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 _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 _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))) +enum { + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LAST_SIGNAL +}; +static guint publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LAST_SIGNAL] = {0}; +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; +#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; + PublishingRESTSupportOAuth1Session* session; + PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane; + PublishingTumblrSizeEntry** sizes; + gint sizes_length1; + gint _sizes_size_; + PublishingTumblrBlogEntry** blogs; + gint blogs_length1; + gint _blogs_size_; + gchar* username; + SpitPublishingAuthenticator* authenticator; +}; + +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 _PublishingTumblrTumblrPublisherUserInfoFetchTransaction { + PublishingRESTSupportOAuth1Transaction parent_instance; + PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate * priv; +}; + +struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass { + PublishingRESTSupportOAuth1TransactionClass parent_class; +}; + +struct _PublishingTumblrTumblrPublisherUploadTransaction { + PublishingRESTSupportOAuth1UploadTransaction parent_instance; + PublishingTumblrTumblrPublisherUploadTransactionPrivate * priv; +}; + +struct _PublishingTumblrTumblrPublisherUploadTransactionClass { + PublishingRESTSupportOAuth1UploadTransactionClass parent_class; +}; + +struct _PublishingTumblrTumblrPublisherUploader { + PublishingRESTSupportBatchUploader parent_instance; + PublishingTumblrTumblrPublisherUploaderPrivate * priv; +}; + +struct _PublishingTumblrTumblrPublisherUploaderClass { + PublishingRESTSupportBatchUploaderClass parent_class; +}; + +struct _PublishingTumblrTumblrPublisherUploaderPrivate { + gchar* blog_url; +}; + + +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_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_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 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_dup8 (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 "https://www.tumblr.com/" +#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_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_authenticator_authenticated (PublishingTumblrTumblrPublisher* self); +static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, gpointer self); +static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1); +static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); +static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); +static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); +static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1); +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); +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); +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 (PublishingRESTSupportOAuth1Session* session); +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* 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_add34 (PublishingTumblrBlogEntry** * array, int* length, int* size, PublishingTumblrBlogEntry* value); +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 (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url); +PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, PublishingRESTSupportOAuth1Session* 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); +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_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_dup9 (PublishingTumblrSizeEntry** self, int length); +static PublishingTumblrBlogEntry** _vala_array_dup10 (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_USER_INFO_FETCH_TRANSACTION_DUMMY_PROPERTY +}; +GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) G_GNUC_CONST; +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 (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url); +PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url); +static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error); +#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); +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); + + +TumblrService* tumblr_service_construct (GType object_type, GFile* resource_directory) { + TumblrService * self = NULL; + GdkPixbuf** _tmp0_; + gint _tmp0__length1; +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (G_IS_FILE (resource_directory), NULL); +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (TumblrService*) g_object_new (object_type, NULL); +#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = tumblr_service_icon_pixbuf_set; +#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0__length1 = tumblr_service_icon_pixbuf_set_length1; +#line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_ == NULL) { +#line 462 "TumblrPublishing.c" + gint _tmp1_; + GdkPixbuf** _tmp2_; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = resources_load_from_resource (PLUGIN_RESOURCE_PATH "/" TUMBLR_SERVICE_ICON_FILENAME, &_tmp1_); +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tumblr_service_icon_pixbuf_set = _tmp2_; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tumblr_service_icon_pixbuf_set_length1 = _tmp1_; +#line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tumblr_service_icon_pixbuf_set_size_ = tumblr_service_icon_pixbuf_set_length1; +#line 475 "TumblrPublishing.c" + } +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 479 "TumblrPublishing.c" +} + + +TumblrService* tumblr_service_new (GFile* resource_directory) { +#line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return tumblr_service_construct (TYPE_TUMBLR_SERVICE, resource_directory); +#line 486 "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_; + gint _tmp1_; + gint _tmp2_; +#line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = min_host_interface; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = max_host_interface; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE); +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp2_; +#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 508 "TumblrPublishing.c" +} + + +static const gchar* tumblr_service_real_get_id (SpitPluggable* base) { + TumblrService * self; + const gchar* result = NULL; +#line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = "org.yorba.shotwell.publishing.tumblr"; +#line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 521 "TumblrPublishing.c" +} + + +static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base) { + TumblrService * self; + const gchar* result = NULL; +#line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = "Tumblr"; +#line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 534 "TumblrPublishing.c" +} + + +static gpointer _g_object_ref0 (gpointer self) { +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self ? g_object_ref (self) : NULL; +#line 541 "TumblrPublishing.c" +} + + +static GdkPixbuf** _vala_array_dup8 (GdkPixbuf** self, int length) { + GdkPixbuf** result; + int i; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = g_new0 (GdkPixbuf*, length + 1); +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (i = 0; i < length; i++) { +#line 552 "TumblrPublishing.c" + GdkPixbuf* _tmp0_; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = _g_object_ref0 (self[i]); +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result[i] = _tmp0_; +#line 558 "TumblrPublishing.c" + } +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 562 "TumblrPublishing.c" +} + + +static void tumblr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { + TumblrService * self; + gchar* _tmp0_; + gchar* _tmp1_; + gchar* _tmp2_; + gchar* _tmp3_; + gchar* _tmp4_; + gchar* _tmp5_; + gchar* _tmp6_; + GdkPixbuf** _tmp7_; + gint _tmp7__length1; + GdkPixbuf** _tmp8_; + gint _tmp8__length1; +#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 33 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (info != NULL); +#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_strdup ("Jeroen Arnoldus"); +#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).authors); +#line 34 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).authors = _tmp0_; +#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = g_strdup (_ ("Copyright 2012 BJA Electronics")); +#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).copyright); +#line 35 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).copyright = _tmp1_; +#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = g_strdup (RESOURCES_TRANSLATORS); +#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).translators); +#line 36 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).translators = _tmp2_; +#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = g_strdup (_VERSION); +#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).version); +#line 37 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).version = _tmp3_; +#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = g_strdup (RESOURCES_WEBSITE_NAME); +#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).website_name); +#line 38 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).website_name = _tmp4_; +#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = g_strdup (RESOURCES_WEBSITE_URL); +#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).website_url); +#line 39 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).website_url = _tmp5_; +#line 40 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).is_license_wordwrapped = FALSE; +#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = g_strdup (RESOURCES_LICENSE); +#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 ((*info).license); +#line 41 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).license = _tmp6_; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = tumblr_service_icon_pixbuf_set; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7__length1 = tumblr_service_icon_pixbuf_set_length1; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = (_tmp7_ != NULL) ? _vala_array_dup8 (_tmp7_, _tmp7__length1) : ((gpointer) _tmp7_); +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8__length1 = _tmp7__length1; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).icons = (_vala_array_free ((*info).icons, (*info).icons_length1, (GDestroyNotify) g_object_unref), NULL); +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).icons = _tmp8_; +#line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*info).icons_length1 = _tmp8__length1; +#line 641 "TumblrPublishing.c" +} + + +static void tumblr_service_real_activation (SpitPluggable* base, gboolean enabled) { + TumblrService * self; +#line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 649 "TumblrPublishing.c" +} + + +static SpitPublishingPublisher* tumblr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) { + TumblrService * self; + SpitPublishingPublisher* result = NULL; + SpitPublishingPluginHost* _tmp0_; + PublishingTumblrTumblrPublisher* _tmp1_; +#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = host; +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = publishing_tumblr_tumblr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_); +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); +#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 670 "TumblrPublishing.c" +} + + +static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media (SpitPublishingService* base) { + TumblrService * self; + SpitPublishingPublisherMediaType result = 0; +#line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); +#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; +#line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 683 "TumblrPublishing.c" +} + + +static void tumblr_service_class_init (TumblrServiceClass * klass) { +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tumblr_service_parent_class = g_type_class_peek_parent (klass); +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (klass)->finalize = tumblr_service_finalize; +#line 692 "TumblrPublishing.c" +} + + +static void tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) { +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tumblr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_pluggable_interface = (gint (*) (SpitPluggable *, gint, gint)) tumblr_service_real_get_pluggable_interface; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_id = (const gchar* (*) (SpitPluggable *)) tumblr_service_real_get_id; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_pluggable_name = (const gchar* (*) (SpitPluggable *)) tumblr_service_real_get_pluggable_name; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) tumblr_service_real_get_info; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->activation = (void (*) (SpitPluggable *, gboolean)) tumblr_service_real_activation; +#line 709 "TumblrPublishing.c" +} + + +static void tumblr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) { +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tumblr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) tumblr_service_real_create_publisher; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) tumblr_service_real_get_supported_media; +#line 720 "TumblrPublishing.c" +} + + +static void tumblr_service_instance_init (TumblrService * self) { +} + + +static void tumblr_service_finalize (GObject * obj) { + TumblrService * self; +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TUMBLR_SERVICE, TumblrService); +#line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (tumblr_service_parent_class)->finalize (obj); +#line 734 "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_; + gchar* _tmp1_; + const gchar* _tmp2_; + gchar* _tmp3_; +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (creator_blog != NULL, NULL); +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (creator_url != NULL, NULL); +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrBlogEntry*) g_type_create_instance (object_type); +#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = creator_blog; +#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = g_strdup (_tmp0_); +#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->blog); +#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->blog = _tmp1_; +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = creator_url; +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = g_strdup (_tmp2_); +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->url); +#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->url = _tmp3_; +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 784 "TumblrPublishing.c" +} + + +PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_new (const gchar* creator_blog, const gchar* creator_url) { +#line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_blog_entry_construct (PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, creator_blog, creator_url); +#line 791 "TumblrPublishing.c" +} + + +static void publishing_tumblr_value_blog_entry_init (GValue* value) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 798 "TumblrPublishing.c" +} + + +static void publishing_tumblr_value_blog_entry_free_value (GValue* value) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (value->data[0].v_pointer) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_blog_entry_unref (value->data[0].v_pointer); +#line 807 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_value_blog_entry_copy_value (const GValue* src_value, GValue* dest_value) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (src_value->data[0].v_pointer) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + dest_value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (src_value->data[0].v_pointer); +#line 817 "TumblrPublishing.c" + } else { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + dest_value->data[0].v_pointer = NULL; +#line 821 "TumblrPublishing.c" + } +} + + +static gpointer publishing_tumblr_value_blog_entry_peek_pointer (const GValue* value) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return value->data[0].v_pointer; +#line 829 "TumblrPublishing.c" +} + + +static gchar* publishing_tumblr_value_blog_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (collect_values[0].v_pointer) { +#line 836 "TumblrPublishing.c" + PublishingTumblrBlogEntry * object; + object = collect_values[0].v_pointer; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (object->parent_instance.g_class == NULL) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); +#line 843 "TumblrPublishing.c" + } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 847 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (object); +#line 851 "TumblrPublishing.c" + } else { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 855 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return NULL; +#line 859 "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 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!object_p) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); +#line 870 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!value->data[0].v_pointer) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = NULL; +#line 876 "TumblrPublishing.c" + } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = value->data[0].v_pointer; +#line 880 "TumblrPublishing.c" + } else { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); +#line 884 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return NULL; +#line 888 "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 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_PARAM_SPEC (spec)->value_type = object_type; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return G_PARAM_SPEC (spec); +#line 902 "TumblrPublishing.c" +} + + +gpointer publishing_tumblr_value_get_blog_entry (const GValue* value) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return value->data[0].v_pointer; +#line 911 "TumblrPublishing.c" +} + + +void publishing_tumblr_value_set_blog_entry (GValue* value, gpointer v_object) { + PublishingTumblrBlogEntry * old; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + old = value->data[0].v_pointer; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (v_object) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = v_object; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); +#line 931 "TumblrPublishing.c" + } else { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 935 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (old) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_blog_entry_unref (old); +#line 941 "TumblrPublishing.c" + } +} + + +void publishing_tumblr_value_take_blog_entry (GValue* value, gpointer v_object) { + PublishingTumblrBlogEntry * old; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + old = value->data[0].v_pointer; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (v_object) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = v_object; +#line 960 "TumblrPublishing.c" + } else { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 964 "TumblrPublishing.c" + } +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (old) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_blog_entry_unref (old); +#line 970 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_blog_entry_class_init (PublishingTumblrBlogEntryClass * klass) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_blog_entry_parent_class = g_type_class_peek_parent (klass); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + ((PublishingTumblrBlogEntryClass *) klass)->finalize = publishing_tumblr_blog_entry_finalize; +#line 980 "TumblrPublishing.c" +} + + +static void publishing_tumblr_blog_entry_instance_init (PublishingTumblrBlogEntry * self) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->ref_count = 1; +#line 987 "TumblrPublishing.c" +} + + +static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * obj) { + PublishingTumblrBlogEntry * self; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_handlers_destroy (self); +#line 68 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->blog); +#line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->url); +#line 1001 "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 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_atomic_int_inc (&self->ref_count); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return instance; +#line 1026 "TumblrPublishing.c" +} + + +void publishing_tumblr_blog_entry_unref (gpointer instance) { + PublishingTumblrBlogEntry * self; + self = instance; +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (g_atomic_int_dec_and_test (&self->ref_count)) { +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS (self)->finalize (self); +#line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_type_free_instance ((GTypeInstance *) self); +#line 1039 "TumblrPublishing.c" + } +} + + +PublishingTumblrSizeEntry* publishing_tumblr_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size) { + PublishingTumblrSizeEntry* self = NULL; + const gchar* _tmp0_; + gchar* _tmp1_; + gint _tmp2_; +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (creator_title != NULL, NULL); +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrSizeEntry*) g_type_create_instance (object_type); +#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = creator_title; +#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = g_strdup (_tmp0_); +#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->title); +#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->title = _tmp1_; +#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = creator_size; +#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->size = _tmp2_; +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 1067 "TumblrPublishing.c" +} + + +PublishingTumblrSizeEntry* publishing_tumblr_size_entry_new (const gchar* creator_title, gint creator_size) { +#line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_size_entry_construct (PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, creator_title, creator_size); +#line 1074 "TumblrPublishing.c" +} + + +static void publishing_tumblr_value_size_entry_init (GValue* value) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 1081 "TumblrPublishing.c" +} + + +static void publishing_tumblr_value_size_entry_free_value (GValue* value) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (value->data[0].v_pointer) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_size_entry_unref (value->data[0].v_pointer); +#line 1090 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_value_size_entry_copy_value (const GValue* src_value, GValue* dest_value) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (src_value->data[0].v_pointer) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + dest_value->data[0].v_pointer = publishing_tumblr_size_entry_ref (src_value->data[0].v_pointer); +#line 1100 "TumblrPublishing.c" + } else { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + dest_value->data[0].v_pointer = NULL; +#line 1104 "TumblrPublishing.c" + } +} + + +static gpointer publishing_tumblr_value_size_entry_peek_pointer (const GValue* value) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return value->data[0].v_pointer; +#line 1112 "TumblrPublishing.c" +} + + +static gchar* publishing_tumblr_value_size_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (collect_values[0].v_pointer) { +#line 1119 "TumblrPublishing.c" + PublishingTumblrSizeEntry * object; + object = collect_values[0].v_pointer; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (object->parent_instance.g_class == NULL) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); +#line 1126 "TumblrPublishing.c" + } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 1130 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = publishing_tumblr_size_entry_ref (object); +#line 1134 "TumblrPublishing.c" + } else { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 1138 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return NULL; +#line 1142 "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 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!object_p) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); +#line 1153 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!value->data[0].v_pointer) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = NULL; +#line 1159 "TumblrPublishing.c" + } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = value->data[0].v_pointer; +#line 1163 "TumblrPublishing.c" + } else { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *object_p = publishing_tumblr_size_entry_ref (value->data[0].v_pointer); +#line 1167 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return NULL; +#line 1171 "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 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_PARAM_SPEC (spec)->value_type = object_type; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return G_PARAM_SPEC (spec); +#line 1185 "TumblrPublishing.c" +} + + +gpointer publishing_tumblr_value_get_size_entry (const GValue* value) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return value->data[0].v_pointer; +#line 1194 "TumblrPublishing.c" +} + + +void publishing_tumblr_value_set_size_entry (GValue* value, gpointer v_object) { + PublishingTumblrSizeEntry * old; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + old = value->data[0].v_pointer; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (v_object) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = v_object; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_size_entry_ref (value->data[0].v_pointer); +#line 1214 "TumblrPublishing.c" + } else { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 1218 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (old) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_size_entry_unref (old); +#line 1224 "TumblrPublishing.c" + } +} + + +void publishing_tumblr_value_take_size_entry (GValue* value, gpointer v_object) { + PublishingTumblrSizeEntry * old; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + old = value->data[0].v_pointer; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (v_object) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = v_object; +#line 1243 "TumblrPublishing.c" + } else { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + value->data[0].v_pointer = NULL; +#line 1247 "TumblrPublishing.c" + } +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (old) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_size_entry_unref (old); +#line 1253 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_size_entry_class_init (PublishingTumblrSizeEntryClass * klass) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_size_entry_parent_class = g_type_class_peek_parent (klass); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + ((PublishingTumblrSizeEntryClass *) klass)->finalize = publishing_tumblr_size_entry_finalize; +#line 1263 "TumblrPublishing.c" +} + + +static void publishing_tumblr_size_entry_instance_init (PublishingTumblrSizeEntry * self) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->ref_count = 1; +#line 1270 "TumblrPublishing.c" +} + + +static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * obj) { + PublishingTumblrSizeEntry * self; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_handlers_destroy (self); +#line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->title); +#line 1282 "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 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_atomic_int_inc (&self->ref_count); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return instance; +#line 1307 "TumblrPublishing.c" +} + + +void publishing_tumblr_size_entry_unref (gpointer instance) { + PublishingTumblrSizeEntry * self; + self = instance; +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (g_atomic_int_dec_and_test (&self->ref_count)) { +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS (self)->finalize (self); +#line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_type_free_instance ((GTypeInstance *) self); +#line 1320 "TumblrPublishing.c" + } +} + + +static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, gpointer self) { +#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_authenticator_authenticated ((PublishingTumblrTumblrPublisher*) self); +#line 1328 "TumblrPublishing.c" +} + + +static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if ((*length) == (*size)) { +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); +#line 1339 "TumblrPublishing.c" + } +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[(*length)++] = value; +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[*length] = NULL; +#line 1345 "TumblrPublishing.c" +} + + +static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if ((*length) == (*size)) { +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); +#line 1356 "TumblrPublishing.c" + } +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[(*length)++] = value; +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[*length] = NULL; +#line 1362 "TumblrPublishing.c" +} + + +static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if ((*length) == (*size)) { +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); +#line 1373 "TumblrPublishing.c" + } +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[(*length)++] = value; +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[*length] = NULL; +#line 1379 "TumblrPublishing.c" +} + + +static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1) { + PublishingTumblrSizeEntry** result = NULL; + PublishingTumblrSizeEntry** _result_ = NULL; + PublishingTumblrSizeEntry** _tmp0_; + gint _result__length1; + gint __result__size_; + PublishingTumblrSizeEntry** _tmp1_; + gint _tmp1__length1; + PublishingTumblrSizeEntry* _tmp2_; + PublishingTumblrSizeEntry** _tmp3_; + gint _tmp3__length1; + PublishingTumblrSizeEntry* _tmp4_; + PublishingTumblrSizeEntry** _tmp5_; + gint _tmp5__length1; + PublishingTumblrSizeEntry* _tmp6_; + PublishingTumblrSizeEntry** _tmp7_; + gint _tmp7__length1; +#line 100 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); +#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_new0 (PublishingTumblrSizeEntry*, 0 + 1); +#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _result_ = _tmp0_; +#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _result__length1 = 0; +#line 101 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + __result__size_ = _result__length1; +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _result_; +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1__length1 = _result__length1; +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = publishing_tumblr_size_entry_new (_ ("500 × 375 pixels"), 500); +#line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_array_add31 (&_result_, &_result__length1, &__result__size_, _tmp2_); +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = _result_; +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3__length1 = _result__length1; +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = publishing_tumblr_size_entry_new (_ ("1024 × 768 pixels"), 1024); +#line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_array_add32 (&_result_, &_result__length1, &__result__size_, _tmp4_); +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _result_; +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5__length1 = _result__length1; +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = publishing_tumblr_size_entry_new (_ ("1280 × 853 pixels"), 1280); +#line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_array_add33 (&_result_, &_result__length1, &__result__size_, _tmp6_); +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = _result_; +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7__length1 = _result__length1; +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (result_length1) { +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *result_length1 = _tmp7__length1; +#line 1442 "TumblrPublishing.c" + } +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp7_; +#line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1448 "TumblrPublishing.c" +} + + +static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1) { + PublishingTumblrBlogEntry** result = NULL; + PublishingTumblrBlogEntry** _result_ = NULL; + PublishingTumblrBlogEntry** _tmp0_; + gint _result__length1; + gint __result__size_; + PublishingTumblrBlogEntry** _tmp1_; + gint _tmp1__length1; +#line 114 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); +#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_new0 (PublishingTumblrBlogEntry*, 0 + 1); +#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _result_ = _tmp0_; +#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _result__length1 = 0; +#line 115 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + __result__size_ = _result__length1; +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _result_; +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1__length1 = _result__length1; +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (result_length1) { +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *result_length1 = _tmp1__length1; +#line 1478 "TumblrPublishing.c" + } +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1484 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) { + PublishingTumblrTumblrPublisher * self = NULL; + SpitPublishingService* _tmp0_; + SpitPublishingService* _tmp1_; + SpitPublishingPluginHost* _tmp2_; + SpitPublishingPluginHost* _tmp3_; + PublishingRESTSupportOAuth1Session* _tmp4_; + gint _tmp5_; + PublishingTumblrSizeEntry** _tmp6_; + gint _tmp7_; + PublishingTumblrBlogEntry** _tmp8_; + PublishingAuthenticatorFactory* _tmp9_; + PublishingAuthenticatorFactory* _tmp10_; + SpitPublishingPluginHost* _tmp11_; + SpitPublishingAuthenticator* _tmp12_; + SpitPublishingAuthenticator* _tmp13_; +#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); +#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); +#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrTumblrPublisher*) g_object_new (object_type, NULL); +#line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:123: TumblrPublisher instantiated."); +#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = service; +#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _g_object_ref0 (_tmp0_); +#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->service); +#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->service = _tmp1_; +#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = host; +#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = _g_object_ref0 (_tmp2_); +#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->host); +#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->host = _tmp3_; +#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = publishing_rest_support_oauth1_session_new (PUBLISHING_TUMBLR_ENDPOINT_URL); +#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_session_unref0 (self->priv->session); +#line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->session = _tmp4_; +#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = publishing_tumblr_tumblr_publisher_create_sizes (self, &_tmp5_); +#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); +#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = _tmp6_; +#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes_length1 = _tmp5_; +#line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_sizes_size_ = self->priv->sizes_length1; +#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = publishing_tumblr_tumblr_publisher_create_blogs (self, &_tmp7_); +#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); +#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = _tmp8_; +#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs_length1 = _tmp7_; +#line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_blogs_size_ = self->priv->blogs_length1; +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = publishing_authenticator_factory_get_instance (); +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = _tmp9_; +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = host; +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "tumblr", _tmp11_); +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->authenticator); +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->authenticator = _tmp12_; +#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (_tmp10_); +#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = self->priv->authenticator; +#line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_connect_object (_tmp13_, "authenticated", (GCallback) _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); +#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 1574 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) { +#line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_tumblr_publisher_construct (PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, service, host); +#line 1581 "TumblrPublishing.c" +} + + +static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base) { + PublishingTumblrTumblrPublisher * self; + SpitPublishingService* result = NULL; + SpitPublishingService* _tmp0_; + SpitPublishingService* _tmp1_; +#line 140 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); +#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->service; +#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _g_object_ref0 (_tmp0_); +#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1600 "TumblrPublishing.c" +} + + +SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self) { + SpitPublishingPluginHost* result = NULL; + SpitPublishingPluginHost* _tmp0_; + SpitPublishingPluginHost* _tmp1_; +#line 144 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), NULL); +#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _g_object_ref0 (_tmp0_); +#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1618 "TumblrPublishing.c" +} + + +static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base) { + PublishingTumblrTumblrPublisher * self; + gboolean result = FALSE; + gboolean _tmp0_; +#line 148 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); +#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->running; +#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp0_; +#line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1634 "TumblrPublishing.c" +} + + +gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) { + gint result = 0; + SpitPublishingPluginHost* _tmp0_; + gint _tmp1_; +#line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); +#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); +#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1652 "TumblrPublishing.c" +} + + +void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, gint size) { + SpitPublishingPluginHost* _tmp0_; + gint _tmp1_; +#line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = size; +#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", _tmp1_); +#line 1667 "TumblrPublishing.c" +} + + +gint publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self) { + gint result = 0; + SpitPublishingPluginHost* _tmp0_; + gint _tmp1_; +#line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); +#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", 0); +#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 1685 "TumblrPublishing.c" +} + + +void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, gint blog) { + SpitPublishingPluginHost* _tmp0_; + gint _tmp1_; +#line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = blog; +#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", _tmp1_); +#line 1700 "TumblrPublishing.c" +} + + +static gpointer _g_variant_ref0 (gpointer self) { +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self ? g_variant_ref (self) : NULL; +#line 1707 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self) { + gboolean _tmp0_; + GHashTable* params = NULL; + SpitPublishingAuthenticator* _tmp1_; + GHashTable* _tmp2_; + GVariant* consumer_key = NULL; + GVariant* consumer_secret = NULL; + GVariant* auth_token = NULL; + GVariant* auth_token_secret = NULL; + GHashTable* _tmp3_; + gconstpointer _tmp4_ = NULL; + GVariant* _tmp5_; + GHashTable* _tmp6_; + gconstpointer _tmp7_ = NULL; + GVariant* _tmp8_; + PublishingRESTSupportOAuth1Session* _tmp9_; + GVariant* _tmp10_; + const gchar* _tmp11_; + GVariant* _tmp12_; + const gchar* _tmp13_; + GHashTable* _tmp14_; + gconstpointer _tmp15_ = NULL; + GVariant* _tmp16_; + GHashTable* _tmp17_; + gconstpointer _tmp18_ = NULL; + GVariant* _tmp19_; + PublishingRESTSupportOAuth1Session* _tmp20_; + GVariant* _tmp21_; + const gchar* _tmp22_; + GVariant* _tmp23_; + const gchar* _tmp24_; +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp0_) { +#line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 1750 "TumblrPublishing.c" + } +#line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:174: EVENT: a fully authenticated session has be" \ +"come available"); +#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->authenticator; +#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = spit_publishing_authenticator_get_authentication_parameter (_tmp1_); +#line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + params = _tmp2_; +#line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + consumer_key = NULL; +#line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + consumer_secret = NULL; +#line 179 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + auth_token = NULL; +#line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + auth_token_secret = NULL; +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = params; +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_hash_table_lookup_extended (_tmp3_, "ConsumerKey", NULL, &_tmp4_); +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (consumer_key); +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _g_variant_ref0 (_tmp4_); +#line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + consumer_key = _tmp5_; +#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = params; +#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_hash_table_lookup_extended (_tmp6_, "ConsumerSecret", NULL, &_tmp7_); +#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (consumer_secret); +#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = _g_variant_ref0 (_tmp7_); +#line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + consumer_secret = _tmp8_; +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = self->priv->session; +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = consumer_key; +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = g_variant_get_string (_tmp10_, NULL); +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = consumer_secret; +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = g_variant_get_string (_tmp12_, NULL); +#line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_oauth1_session_set_api_credentials (_tmp9_, _tmp11_, _tmp13_); +#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14_ = params; +#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_hash_table_lookup_extended (_tmp14_, "AuthToken", NULL, &_tmp15_); +#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (auth_token); +#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = _g_variant_ref0 (_tmp15_); +#line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + auth_token = _tmp16_; +#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17_ = params; +#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_hash_table_lookup_extended (_tmp17_, "AuthTokenSecret", NULL, &_tmp18_); +#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (auth_token_secret); +#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19_ = _g_variant_ref0 (_tmp18_); +#line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + auth_token_secret = _tmp19_; +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp20_ = self->priv->session; +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp21_ = auth_token; +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp22_ = g_variant_get_string (_tmp21_, NULL); +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp23_ = auth_token_secret; +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp24_ = g_variant_get_string (_tmp23_, NULL); +#line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp20_, _tmp22_, _tmp24_, ""); +#line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_get_blogs (self); +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (auth_token_secret); +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (auth_token); +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (consumer_secret); +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_variant_unref0 (consumer_key); +#line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_hash_table_unref0 (params); +#line 1844 "TumblrPublishing.c" +} + + +static void _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, gpointer self) { +#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_info_request_txn_completed ((PublishingTumblrTumblrPublisher*) self, _sender); +#line 1851 "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 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_info_request_txn_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); +#line 1858 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self) { + PublishingTumblrTumblrPublisherUserInfoFetchTransaction* txn = NULL; + PublishingRESTSupportOAuth1Session* _tmp0_; + PublishingTumblrTumblrPublisherUserInfoFetchTransaction* _tmp1_; + GError * _inner_error_ = NULL; +#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 196 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:196: ACTION: obtain all blogs of the tumblr user"); +#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->session; +#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (_tmp0_); +#line 197 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + txn = _tmp1_; +#line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 1881 "TumblrPublishing.c" + { +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { +#line 1889 "TumblrPublishing.c" + goto __catch20_spit_publishing_publishing_error; + } +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_transaction_unref0 (txn); +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 1900 "TumblrPublishing.c" + } + } + goto __finally20; + __catch20_spit_publishing_publishing_error: + { + GError* err = NULL; + SpitPublishingPluginHost* _tmp2_; + GError* _tmp3_; +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + err = _inner_error_; +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _inner_error_ = NULL; +#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = self->priv->host; +#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = err; +#line 204 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_post_error (_tmp2_, _tmp3_); +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_error_free0 (err); +#line 1921 "TumblrPublishing.c" + } + __finally20: +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_transaction_unref0 (txn); +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 1934 "TumblrPublishing.c" + } +#line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_transaction_unref0 (txn); +#line 1938 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn) { + PublishingRESTSupportTransaction* _tmp0_; + guint _tmp1_; + PublishingRESTSupportTransaction* _tmp2_; + guint _tmp3_; + gboolean _tmp4_; + PublishingRESTSupportTransaction* _tmp5_; + gchar* _tmp6_; + gchar* _tmp7_; + PublishingRESTSupportTransaction* _tmp8_; + gchar* _tmp9_; + gchar* _tmp10_; +#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); +#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = txn; +#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); +#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = txn; +#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE); +#line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp4_) { +#line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 1976 "TumblrPublishing.c" + } +#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = txn; +#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_); +#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = _tmp6_; +#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:218: EVENT: user info request transaction comple" \ +"ted; response = '%s'", _tmp7_); +#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp7_); +#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = txn; +#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_); +#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = _tmp9_; +#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (self, _tmp10_); +#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp10_); +#line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (self); +#line 2000 "TumblrPublishing.c" +} + + +static gpointer _json_object_ref0 (gpointer self) { +#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self ? json_object_ref (self) : NULL; +#line 2007 "TumblrPublishing.c" +} + + +static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { + gchar* result = NULL; + gboolean _tmp0_ = FALSE; + gboolean _tmp1_ = FALSE; + GError * _inner_error_ = NULL; +#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_return_val_if_fail (self != NULL, NULL); +#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_return_val_if_fail (old != NULL, NULL); +#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_return_val_if_fail (replacement != NULL, NULL); +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if ((*((gchar*) self)) == '\0') { +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp1_ = TRUE; +#line 2026 "TumblrPublishing.c" + } else { + const gchar* _tmp2_; +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp2_ = old; +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp1_ = (*((gchar*) _tmp2_)) == '\0'; +#line 2033 "TumblrPublishing.c" + } +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp1_) { +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp0_ = TRUE; +#line 2039 "TumblrPublishing.c" + } else { + const gchar* _tmp3_; + const gchar* _tmp4_; +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp3_ = old; +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp4_ = replacement; +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0; +#line 2049 "TumblrPublishing.c" + } +#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp0_) { +#line 2053 "TumblrPublishing.c" + gchar* _tmp5_; +#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp5_ = g_strdup (self); +#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = _tmp5_; +#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 2061 "TumblrPublishing.c" + } + { + GRegex* regex = NULL; + const gchar* _tmp6_; + gchar* _tmp7_; + gchar* _tmp8_; + GRegex* _tmp9_; + GRegex* _tmp10_; + gchar* _tmp11_ = NULL; + GRegex* _tmp12_; + const gchar* _tmp13_; + gchar* _tmp14_; + gchar* _tmp15_; +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp6_ = old; +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp7_ = g_regex_escape_string (_tmp6_, -1); +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp8_ = _tmp7_; +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_); +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp10_ = _tmp9_; +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_free0 (_tmp8_); +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + regex = _tmp10_; +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_inner_error_->domain == G_REGEX_ERROR) { +#line 2093 "TumblrPublishing.c" + goto __catch22_g_regex_error; + } +#line 1412 "/usr/share/vala-0.36/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 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_clear_error (&_inner_error_); +#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return NULL; +#line 2102 "TumblrPublishing.c" + } +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp12_ = regex; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp13_ = replacement; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_); +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp11_ = _tmp14_; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_regex_unref0 (regex); +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_inner_error_->domain == G_REGEX_ERROR) { +#line 2118 "TumblrPublishing.c" + goto __catch22_g_regex_error; + } +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_regex_unref0 (regex); +#line 1413 "/usr/share/vala-0.36/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 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_clear_error (&_inner_error_); +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return NULL; +#line 2129 "TumblrPublishing.c" + } +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp15_ = _tmp11_; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp11_ = NULL; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = _tmp15_; +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_free0 (_tmp11_); +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_regex_unref0 (regex); +#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 2143 "TumblrPublishing.c" + } + goto __finally22; + __catch22_g_regex_error: + { + GError* e = NULL; +#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + e = _inner_error_; +#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _inner_error_ = NULL; +#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_assert_not_reached (); +#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _g_error_free0 (e); +#line 2157 "TumblrPublishing.c" + } + __finally22: +#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 1411 "/usr/share/vala-0.36/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 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_clear_error (&_inner_error_); +#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return NULL; +#line 2168 "TumblrPublishing.c" + } +} + + +static void _vala_array_add34 (PublishingTumblrBlogEntry** * array, int* length, int* size, PublishingTumblrBlogEntry* value) { +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if ((*length) == (*size)) { +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *size = (*size) ? (2 * (*size)) : 4; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + *array = g_renew (PublishingTumblrBlogEntry*, *array, (*size) + 1); +#line 2180 "TumblrPublishing.c" + } +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[(*length)++] = value; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + (*array)[*length] = NULL; +#line 2186 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, const gchar* response) { + const gchar* _tmp0_; + GError * _inner_error_ = NULL; +#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (response != NULL); +#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = response; +#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:226: ACTION: parsing info request response '%s' " \ +"into list of available blogs", _tmp0_); +#line 2201 "TumblrPublishing.c" + { + JsonParser* parser = NULL; + JsonParser* _tmp1_; + const gchar* _tmp2_; + JsonObject* root_object = NULL; + JsonNode* _tmp3_; + JsonObject* _tmp4_; + JsonObject* _tmp5_; + JsonObject* _tmp6_; + JsonObject* _tmp7_; + JsonObject* _tmp8_; + const gchar* _tmp9_; + gchar* _tmp10_; + const gchar* _tmp11_; + JsonObject* _tmp12_; + JsonObject* _tmp13_; + JsonObject* _tmp14_; + JsonArray* _tmp15_; + GList* _tmp16_; +#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = json_parser_new (); +#line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + parser = _tmp1_; +#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = response; +#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + json_parser_load_from_data (parser, _tmp2_, (gssize) -1, &_inner_error_); +#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (parser); +#line 2233 "TumblrPublishing.c" + goto __catch21_g_error; + } +#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = json_parser_get_root (parser); +#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = json_node_get_object (_tmp3_); +#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _json_object_ref0 (_tmp4_); +#line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + root_object = _tmp5_; +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = root_object; +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = json_object_get_object_member (_tmp6_, "response"); +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = json_object_get_object_member (_tmp7_, "user"); +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = json_object_get_string_member (_tmp8_, "name"); +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = g_strdup (_tmp9_); +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->username); +#line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->username = _tmp10_; +#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = self->priv->username; +#line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:232: Got user name: %s", _tmp11_); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = root_object; +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = json_object_get_object_member (_tmp12_, "response"); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14_ = json_object_get_object_member (_tmp13_, "user"); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp15_ = json_object_get_array_member (_tmp14_, "blogs"); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = json_array_get_elements (_tmp15_); +#line 2272 "TumblrPublishing.c" + { + GList* blognode_collection = NULL; + GList* blognode_it = NULL; +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + blognode_collection = _tmp16_; +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (blognode_it = blognode_collection; blognode_it != NULL; blognode_it = blognode_it->next) { +#line 2280 "TumblrPublishing.c" + JsonNode* blognode = NULL; +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + blognode = (JsonNode*) blognode_it->data; +#line 2284 "TumblrPublishing.c" + { + JsonObject* blog = NULL; + JsonNode* _tmp17_; + JsonObject* _tmp18_; + JsonObject* _tmp19_; + gchar* name = NULL; + JsonObject* _tmp20_; + const gchar* _tmp21_; + gchar* _tmp22_; + gchar* url = NULL; + JsonObject* _tmp23_; + const gchar* _tmp24_; + gchar* _tmp25_; + gchar* _tmp26_; + gchar* _tmp27_; + gchar* _tmp28_; + const gchar* _tmp29_; + const gchar* _tmp30_; + PublishingTumblrBlogEntry** _tmp31_; + gint _tmp31__length1; + const gchar* _tmp32_; + const gchar* _tmp33_; + PublishingTumblrBlogEntry* _tmp34_; +#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17_ = blognode; +#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp18_ = json_node_get_object (_tmp17_); +#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19_ = _json_object_ref0 (_tmp18_); +#line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + blog = _tmp19_; +#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp20_ = blog; +#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp21_ = json_object_get_string_member (_tmp20_, "name"); +#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp22_ = g_strdup (_tmp21_); +#line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + name = _tmp22_; +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp23_ = blog; +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp24_ = json_object_get_string_member (_tmp23_, "url"); +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp25_ = string_replace (_tmp24_, "http://", ""); +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp26_ = _tmp25_; +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp27_ = string_replace (_tmp26_, "/", ""); +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28_ = _tmp27_; +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp26_); +#line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + url = _tmp28_; +#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp29_ = name; +#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp30_ = url; +#line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:237: Got blog name: %s and url: %s", _tmp29_, _tmp30_); +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp31_ = self->priv->blogs; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp31__length1 = self->priv->blogs_length1; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp32_ = name; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp33_ = url; +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp34_ = publishing_tumblr_blog_entry_new (_tmp32_, _tmp33_); +#line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_array_add34 (&self->priv->blogs, &self->priv->blogs_length1, &self->priv->_blogs_size_, _tmp34_); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (url); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (name); +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _json_object_unref0 (blog); +#line 2364 "TumblrPublishing.c" + } + } +#line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_list_free0 (blognode_collection); +#line 2369 "TumblrPublishing.c" + } +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _json_object_unref0 (root_object); +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (parser); +#line 2375 "TumblrPublishing.c" + } + goto __finally21; + __catch21_g_error: + { + GError* err = NULL; + SpitPublishingPluginHost* _tmp35_; + GError* _tmp36_; +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + err = _inner_error_; +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _inner_error_ = NULL; +#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp35_ = self->priv->host; +#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp36_ = err; +#line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_post_error (_tmp35_, _tmp36_); +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_error_free0 (err); +#line 2395 "TumblrPublishing.c" + } + __finally21: +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2406 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) { + PublishingRESTSupportTransaction* _tmp0_; + guint _tmp1_; + PublishingRESTSupportTransaction* _tmp2_; + guint _tmp3_; + gboolean _tmp4_; + PublishingRESTSupportOAuth1Session* _tmp5_; + SpitPublishingPluginHost* _tmp6_; + GError* _tmp7_; +#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); +#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = txn; +#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); +#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = txn; +#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE); +#line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp4_) { +#line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2442 "TumblrPublishing.c" + } +#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = self->priv->session; +#line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_oauth1_session_deauthenticate (_tmp5_); +#line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:255: EVENT: user info request transaction caused" \ +" a network error"); +#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = self->priv->host; +#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = err; +#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); +#line 2456 "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 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish ((PublishingTumblrTumblrPublisher*) self); +#line 2463 "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 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout ((PublishingTumblrTumblrPublisher*) self); +#line 2470 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) { + SpitPublishingPluginHost* _tmp0_; + PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane = NULL; + SpitPublishingPluginHost* _tmp1_; + SpitPublishingPublisherMediaType _tmp2_; + PublishingTumblrSizeEntry** _tmp3_; + gint _tmp3__length1; + PublishingTumblrBlogEntry** _tmp4_; + gint _tmp4__length1; + const gchar* _tmp5_; + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp6_; + SpitPublishingPluginHost* _tmp7_; +#line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:260: ACTION: displaying publishing options pane"); +#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 261 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->host; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = spit_publishing_plugin_host_get_publishable_media_type (_tmp1_); +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->sizes; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3__length1 = self->priv->sizes_length1; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = self->priv->blogs; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4__length1 = self->priv->blogs_length1; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = self->priv->username; +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = publishing_tumblr_tumblr_publisher_publishing_options_pane_new (self, _tmp2_, _tmp3_, _tmp3__length1, _tmp4_, _tmp4__length1, _tmp5_); +#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_options_pane = _tmp6_; +#line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = self->priv->host; +#line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (publishing_options_pane); +#line 2522 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) { + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; + gboolean _tmp5_; +#line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->publishing_options_pane; +#line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_ != NULL) { +#line 2535 "TumblrPublishing.c" + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; + guint _tmp2_; + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; + guint _tmp4_; +#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->publishing_options_pane; +#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE); +#line 273 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->publishing_options_pane; +#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); +#line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 2552 "TumblrPublishing.c" + } +#line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = 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/TumblrPublishing.vala" + if (!_tmp5_) { +#line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2560 "TumblrPublishing.c" + } +#line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:280: EVENT: user clicked the 'Publish' button in" \ +" the publishing options pane"); +#line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_publish (self); +#line 2566 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) { + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; + gboolean _tmp5_; +#line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->publishing_options_pane; +#line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_ != NULL) { +#line 2579 "TumblrPublishing.c" + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; + guint _tmp2_; + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; + guint _tmp4_; +#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->publishing_options_pane; +#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp2_, NULL, FALSE); +#line 286 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->publishing_options_pane; +#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); +#line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 2596 "TumblrPublishing.c" + } +#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp5_) { +#line 291 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2604 "TumblrPublishing.c" + } +#line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:293: EVENT: user clicked the 'Logout' button in " \ +"the publishing options pane"); +#line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_logout (self); +#line 2610 "TumblrPublishing.c" +} + + +gint publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b) { + gint result = 0; + SpitPublishingPublishable* _tmp0_; + GDateTime* _tmp1_; + GDateTime* _tmp2_; + SpitPublishingPublishable* _tmp3_; + GDateTime* _tmp4_; + GDateTime* _tmp5_; + gint _tmp6_; + gint _tmp7_; +#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0); +#line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = a; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = spit_publishing_publishable_get_exposure_date_time (_tmp0_); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = _tmp1_; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = b; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = spit_publishing_publishable_get_exposure_date_time (_tmp3_); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _tmp4_; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = g_date_time_compare (_tmp2_, _tmp5_); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = _tmp6_; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_date_time_unref0 (_tmp5_); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_date_time_unref0 (_tmp2_); +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp7_; +#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 2652 "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 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 2661 "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 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_upload_complete ((PublishingTumblrTumblrPublisher*) self, _sender, num_photos_published); +#line 2668 "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 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_upload_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); +#line 2675 "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 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_on_upload_status_updated ((PublishingTumblrTumblrPublisher*) self, file_number, fraction_complete); +#line 2682 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) { + SpitPublishingPluginHost* _tmp0_; + SpitPublishingPluginHost* _tmp1_; + PublishingTumblrSizeEntry** _tmp2_; + gint _tmp2__length1; + gint _tmp3_; + PublishingTumblrSizeEntry* _tmp4_; + gint _tmp5_; + void* _tmp6_; + GDestroyNotify _tmp7_; + SpitPublishingProgressCallback _tmp8_; + gboolean _tmp9_; + SpitPublishingPublishable** publishables = NULL; + SpitPublishingPluginHost* _tmp10_; + gint _tmp11_; + SpitPublishingPublishable** _tmp12_; + gint publishables_length1; + gint _publishables_size_; + GeeArrayList* sorted_list = NULL; + GeeArrayList* _tmp13_; + SpitPublishingPublishable** _tmp14_; + gint _tmp14__length1; + GeeArrayList* _tmp18_; + gchar* blog_url = NULL; + PublishingTumblrBlogEntry** _tmp19_; + gint _tmp19__length1; + gint _tmp20_; + PublishingTumblrBlogEntry* _tmp21_; + const gchar* _tmp22_; + gchar* _tmp23_; + PublishingTumblrTumblrPublisherUploader* uploader = NULL; + PublishingRESTSupportOAuth1Session* _tmp24_; + GeeArrayList* _tmp25_; + gint _tmp26_; + gpointer* _tmp27_; + SpitPublishingPublishable** _tmp28_; + gint _tmp28__length1; + const gchar* _tmp29_; + PublishingTumblrTumblrPublisherUploader* _tmp30_; + PublishingTumblrTumblrPublisherUploader* _tmp31_; + PublishingTumblrTumblrPublisherUploader* _tmp32_; + PublishingTumblrTumblrPublisherUploader* _tmp33_; + PublishingTumblrTumblrPublisherUploader* _tmp34_; +#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:304: ACTION: uploading media items to remote ser" \ +"ver."); +#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 306 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_set_service_locked (_tmp0_, TRUE); +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->host; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = self->priv->sizes; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2__length1 = self->priv->sizes_length1; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (self); +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = _tmp2_[_tmp3_]; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _tmp4_->size; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp5_, FALSE, &_tmp6_, &_tmp7_); +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter = NULL; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target = NULL; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target_destroy_notify = NULL; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter = _tmp8_; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target = _tmp6_; +#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target_destroy_notify = _tmp7_; +#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp9_) { +#line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2771 "TumblrPublishing.c" + } +#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = self->priv->host; +#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_); +#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishables = _tmp12_; +#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishables_length1 = _tmp11_; +#line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishables_size_ = publishables_length1; +#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); +#line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + sorted_list = _tmp13_; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14_ = publishables; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14__length1 = publishables_length1; +#line 2791 "TumblrPublishing.c" + { + SpitPublishingPublishable** p_collection = NULL; + gint p_collection_length1 = 0; + gint _p_collection_size_ = 0; + gint p_it = 0; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + p_collection = _tmp14_; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + p_collection_length1 = _tmp14__length1; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (p_it = 0; p_it < _tmp14__length1; p_it = p_it + 1) { +#line 2803 "TumblrPublishing.c" + SpitPublishingPublishable* _tmp15_; + SpitPublishingPublishable* p = NULL; +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp15_ = _g_object_ref0 (p_collection[p_it]); +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + p = _tmp15_; +#line 2810 "TumblrPublishing.c" + { + GeeArrayList* _tmp16_; + SpitPublishingPublishable* _tmp17_; +#line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:322: ACTION: add publishable"); +#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = sorted_list; +#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17_ = p; +#line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); +#line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (p); +#line 2824 "TumblrPublishing.c" + } + } + } +#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp18_ = sorted_list; +#line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19_ = self->priv->blogs; +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19__length1 = self->priv->blogs_length1; +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp20_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self); +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp21_ = _tmp19_[_tmp20_]; +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp22_ = _tmp21_->url; +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp23_ = g_strdup (_tmp22_); +#line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + blog_url = _tmp23_; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp24_ = self->priv->session; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp25_ = sorted_list; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp27_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp26_); +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28_ = _tmp27_; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28__length1 = _tmp26_; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp29_ = blog_url; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp30_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp24_, _tmp28_, _tmp26_, _tmp29_); +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp31_ = _tmp30_; +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28_ = (_vala_array_free (_tmp28_, _tmp28__length1, (GDestroyNotify) g_object_unref), NULL); +#line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + uploader = _tmp31_; +#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp32_ = uploader; +#line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp33_ = uploader; +#line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp34_ = uploader; +#line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_batch_uploader_unref0 (uploader); +#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (blog_url); +#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (sorted_list); +#line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); +#line 2886 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self) { + SpitPublishingPluginHost* _tmp0_; + SpitPublishingPluginHost* _tmp1_; +#line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 335 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:335: ACTION: showing success pane."); +#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->host; +#line 337 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_set_service_locked (_tmp0_, FALSE); +#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->host; +#line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_install_success_pane (_tmp1_); +#line 2905 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, gint file_number, gdouble completed_fraction) { + gboolean _tmp0_; + gdouble _tmp1_; + SpitPublishingProgressCallback _tmp2_; + void* _tmp2__target; + SpitPublishingProgressCallback _tmp3_; + void* _tmp3__target; + gint _tmp4_; + gdouble _tmp5_; +#line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp0_) { +#line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2926 "TumblrPublishing.c" + } +#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = completed_fraction; +#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:346: EVENT: uploader reports upload %.2f percent" \ +" complete.", 100.0 * _tmp1_); +#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = self->priv->progress_reporter; +#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2__target = self->priv->progress_reporter_target; +#line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_assert (_tmp2_ != NULL, "progress_reporter != null"); +#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->progress_reporter; +#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3__target = self->priv->progress_reporter_target; +#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = file_number; +#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = completed_fraction; +#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ (_tmp4_, _tmp5_, _tmp3__target); +#line 2948 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) { + gboolean _tmp0_; + gint _tmp1_; + PublishingRESTSupportBatchUploader* _tmp2_; + guint _tmp3_; + PublishingRESTSupportBatchUploader* _tmp4_; + guint _tmp5_; +#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); +#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp0_) { +#line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 2969 "TumblrPublishing.c" + } +#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = num_published; +#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:358: EVENT: uploader reports upload complete; %d" \ +" items published.", _tmp1_); +#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = uploader; +#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE); +#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = uploader; +#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp5_, NULL, FALSE); +#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_do_show_success_pane (self); +#line 2989 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) { + gboolean _tmp0_; + GError* _tmp1_; + const gchar* _tmp2_; + PublishingRESTSupportBatchUploader* _tmp3_; + guint _tmp4_; + PublishingRESTSupportBatchUploader* _tmp5_; + guint _tmp6_; + SpitPublishingPluginHost* _tmp7_; + GError* _tmp8_; +#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); +#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp0_) { +#line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 3013 "TumblrPublishing.c" + } +#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = err; +#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = _tmp1_->message; +#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:371: EVENT: uploader reports upload error = '%s'" \ +".", _tmp2_); +#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = uploader; +#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp4_, NULL, FALSE); +#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = uploader; +#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp6_, NULL, FALSE); +#line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = self->priv->host; +#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = err; +#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_); +#line 3039 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) { + SpitPublishingAuthenticator* _tmp0_; + gboolean _tmp1_; +#line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:381: ACTION: logging user out, deauthenticating " \ +"session, and erasing stored credentials"); +#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->authenticator; +#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = spit_publishing_authenticator_can_logout (_tmp0_); +#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp1_) { +#line 3056 "TumblrPublishing.c" + SpitPublishingAuthenticator* _tmp2_; +#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = self->priv->authenticator; +#line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_authenticator_logout (_tmp2_); +#line 3062 "TumblrPublishing.c" + } +#line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->running = FALSE; +#line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_attempt_start (self); +#line 3068 "TumblrPublishing.c" +} + + +void publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self) { + gboolean _tmp0_; + SpitPublishingAuthenticator* _tmp1_; +#line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); +#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_) { +#line 394 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 3083 "TumblrPublishing.c" + } +#line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:396: TumblrPublisher: starting interaction."); +#line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->running = TRUE; +#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->authenticator; +#line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + spit_publishing_authenticator_authenticate (_tmp1_); +#line 3093 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) { + PublishingTumblrTumblrPublisher * self; + gboolean _tmp0_; + gboolean _tmp1_; +#line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); +#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); +#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_) { +#line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 3109 "TumblrPublishing.c" + } +#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->was_started; +#line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp1_) { +#line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_error ("TumblrPublishing.vala:407: %s", _ ("TumblrPublisher: start( ): can’t start; this publisher is not restarta" \ +"ble.")); +#line 3117 "TumblrPublishing.c" + } +#line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:409: TumblrPublisher: starting interaction."); +#line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_attempt_start (self); +#line 3123 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base) { + PublishingTumblrTumblrPublisher * self; +#line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); +#line 415 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:415: TumblrPublisher: stop( ) invoked."); +#line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->running = FALSE; +#line 3135 "TumblrPublishing.c" +} + + +static gpointer _publishing_tumblr_size_entry_ref0 (gpointer self) { +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self ? publishing_tumblr_size_entry_ref (self) : NULL; +#line 3142 "TumblrPublishing.c" +} + + +static PublishingTumblrSizeEntry** _vala_array_dup9 (PublishingTumblrSizeEntry** self, int length) { + PublishingTumblrSizeEntry** result; + int i; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = g_new0 (PublishingTumblrSizeEntry*, length + 1); +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (i = 0; i < length; i++) { +#line 3153 "TumblrPublishing.c" + PublishingTumblrSizeEntry* _tmp0_; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = _publishing_tumblr_size_entry_ref0 (self[i]); +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result[i] = _tmp0_; +#line 3159 "TumblrPublishing.c" + } +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 3163 "TumblrPublishing.c" +} + + +static gpointer _publishing_tumblr_blog_entry_ref0 (gpointer self) { +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self ? publishing_tumblr_blog_entry_ref (self) : NULL; +#line 3170 "TumblrPublishing.c" +} + + +static PublishingTumblrBlogEntry** _vala_array_dup10 (PublishingTumblrBlogEntry** self, int length) { + PublishingTumblrBlogEntry** result; + int i; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = g_new0 (PublishingTumblrBlogEntry*, length + 1); +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (i = 0; i < length; i++) { +#line 3181 "TumblrPublishing.c" + PublishingTumblrBlogEntry* _tmp0_; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = _publishing_tumblr_blog_entry_ref0 (self[i]); +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result[i] = _tmp0_; +#line 3187 "TumblrPublishing.c" + } +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 3191 "TumblrPublishing.c" +} + + +static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) { +#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3198 "TumblrPublishing.c" +} + + +static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) { +#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3205 "TumblrPublishing.c" +} + + +static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) { +#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3212 "TumblrPublishing.c" +} + + +static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) { +#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3219 "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_; + const gchar* _tmp1_; + gchar* _tmp2_; + PublishingTumblrTumblrPublisher* _tmp3_; + PublishingTumblrTumblrPublisher* _tmp4_; + SpitPublishingPublisherMediaType _tmp5_; + PublishingTumblrSizeEntry** _tmp6_; + gint _tmp6__length1; + PublishingTumblrSizeEntry** _tmp7_; + gint _tmp7__length1; + PublishingTumblrBlogEntry** _tmp8_; + gint _tmp8__length1; + PublishingTumblrBlogEntry** _tmp9_; + gint _tmp9__length1; + GError * _inner_error_ = NULL; +#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (publisher), NULL); +#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (username != NULL, NULL); +#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrTumblrPublisherPublishingOptionsPane*) g_object_new (object_type, NULL); +#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); +#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_object_ref_sink (_tmp0_); +#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->pane_widget); +#line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->pane_widget = _tmp0_; +#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = username; +#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = g_strdup (_tmp1_); +#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->username); +#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->username = _tmp2_; +#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = publisher; +#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = _g_object_ref0 (_tmp3_); +#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->publisher); +#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->publisher = _tmp4_; +#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = media_type; +#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->media_type = _tmp5_; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = sizes; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6__length1 = sizes_length1; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup9 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_); +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7__length1 = _tmp6__length1; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = _tmp7_; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes_length1 = _tmp7__length1; +#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_sizes_size_ = self->priv->sizes_length1; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = blogs; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8__length1 = blogs_length1; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup10 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_); +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9__length1 = _tmp8__length1; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = _tmp9_; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs_length1 = _tmp9__length1; +#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_blogs_size_ = self->priv->blogs_length1; +#line 3306 "TumblrPublishing.c" + { + GtkBuilder* _tmp10_; + GtkBuilder* _tmp11_; + GtkBuilder* _tmp12_; + GtkBuilder* _tmp13_; + GObject* _tmp14_; + GtkBox* _tmp15_; + GtkBuilder* _tmp16_; + GObject* _tmp17_; + GtkLabel* _tmp18_; + GtkBuilder* _tmp19_; + GObject* _tmp20_; + GtkButton* _tmp21_; + GtkBuilder* _tmp22_; + GObject* _tmp23_; + GtkButton* _tmp24_; + GtkBuilder* _tmp25_; + GObject* _tmp26_; + GtkComboBoxText* _tmp27_; + GtkBuilder* _tmp28_; + GObject* _tmp29_; + GtkLabel* _tmp30_; + GtkBuilder* _tmp31_; + GObject* _tmp32_; + GtkComboBoxText* _tmp33_; + GtkBuilder* _tmp34_; + GObject* _tmp35_; + GtkLabel* _tmp36_; + gchar* upload_label_text = NULL; + const gchar* _tmp37_; + gchar* _tmp38_; + GtkLabel* _tmp39_; + const gchar* _tmp40_; + GtkComboBoxText* _tmp41_; + SpitPublishingPublisherMediaType _tmp42_; + GtkButton* _tmp46_; + GtkButton* _tmp47_; +#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = gtk_builder_new (); +#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->builder); +#line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->builder = _tmp10_; +#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = self->priv->builder; +#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_builder_add_from_resource (_tmp11_, PLUGIN_RESOURCE_PATH "/tumblr_publishing_options_pane.ui", &_inner_error_); +#line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 3356 "TumblrPublishing.c" + goto __catch23_g_error; + } +#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = self->priv->builder; +#line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_builder_connect_signals (_tmp12_, NULL); +#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = self->priv->builder; +#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14_ = gtk_builder_get_object (_tmp13_, "tumblr_pane"); +#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_box_get_type (), GtkBox)); +#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->pane_widget); +#line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->pane_widget = _tmp15_; +#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = self->priv->builder; +#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17_ = gtk_builder_get_object (_tmp16_, "upload_info_label"); +#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_label_get_type (), GtkLabel)); +#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->upload_info_label); +#line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->upload_info_label = _tmp18_; +#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19_ = self->priv->builder; +#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp20_ = gtk_builder_get_object (_tmp19_, "logout_button"); +#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_button_get_type (), GtkButton)); +#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->logout_button); +#line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->logout_button = _tmp21_; +#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp22_ = self->priv->builder; +#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp23_ = gtk_builder_get_object (_tmp22_, "publish_button"); +#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_button_get_type (), GtkButton)); +#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->publish_button); +#line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->publish_button = _tmp24_; +#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp25_ = self->priv->builder; +#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp26_ = gtk_builder_get_object (_tmp25_, "size_combo"); +#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_text_get_type (), GtkComboBoxText)); +#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->size_combo); +#line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->size_combo = _tmp27_; +#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28_ = self->priv->builder; +#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp29_ = gtk_builder_get_object (_tmp28_, "size_label"); +#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_label_get_type (), GtkLabel)); +#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->size_label); +#line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->size_label = _tmp30_; +#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp31_ = self->priv->builder; +#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp32_ = gtk_builder_get_object (_tmp31_, "blog_combo"); +#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_combo_box_text_get_type (), GtkComboBoxText)); +#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->blog_combo); +#line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_combo = _tmp33_; +#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp34_ = self->priv->builder; +#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp35_ = gtk_builder_get_object (_tmp34_, "blog_label"); +#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_label_get_type (), GtkLabel)); +#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->blog_label); +#line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_label = _tmp36_; +#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp37_ = self->priv->username; +#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp38_ = g_strdup_printf (_ ("You are logged into Tumblr as %s.\n\n"), _tmp37_); +#line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + upload_label_text = _tmp38_; +#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp39_ = self->priv->upload_info_label; +#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp40_ = upload_label_text; +#line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_label_set_label (_tmp39_, _tmp40_); +#line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (self); +#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp41_ = self->priv->blog_combo; +#line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, 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 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp42_ = media_type; +#line 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp42_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { +#line 3465 "TumblrPublishing.c" + GtkComboBoxText* _tmp43_; +#line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (self); +#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp43_ = self->priv->size_combo; +#line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, 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 3473 "TumblrPublishing.c" + } else { + GtkComboBoxText* _tmp44_; + GtkLabel* _tmp45_; +#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp44_ = self->priv->size_combo; +#line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget), FALSE); +#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp45_ = self->priv->size_label; +#line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), FALSE); +#line 3485 "TumblrPublishing.c" + } +#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp46_ = self->priv->logout_button; +#line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_connect_object (_tmp46_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); +#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp47_ = self->priv->publish_button; +#line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_connect_object (_tmp47_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (upload_label_text); +#line 3497 "TumblrPublishing.c" + } + goto __finally23; + __catch23_g_error: + { + GError* e = NULL; + GError* _tmp48_; + const gchar* _tmp49_; +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + e = _inner_error_; +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _inner_error_ = NULL; +#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp48_ = e; +#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp49_ = _tmp48_->message; +#line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_warning (_ ("Could not load UI: %s"), _tmp49_); +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_error_free0 (e); +#line 3517 "TumblrPublishing.c" + } + __finally23: +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return NULL; +#line 3528 "TumblrPublishing.c" + } +#line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 3532 "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 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3539 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +#line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); +#line 3548 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +#line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); +#line 3557 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { + PublishingTumblrBlogEntry** _tmp0_; + gint _tmp0__length1; +#line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->blogs; +#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0__length1 = self->priv->blogs_length1; +#line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_ != NULL) { +#line 3572 "TumblrPublishing.c" + PublishingTumblrBlogEntry** _tmp1_; + gint _tmp1__length1; + GtkComboBoxText* _tmp6_; + PublishingTumblrTumblrPublisher* _tmp7_; + gint _tmp8_; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->blogs; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1__length1 = self->priv->blogs_length1; +#line 3582 "TumblrPublishing.c" + { + PublishingTumblrBlogEntry** b_collection = NULL; + gint b_collection_length1 = 0; + gint _b_collection_size_ = 0; + gint b_it = 0; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + b_collection = _tmp1_; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + b_collection_length1 = _tmp1__length1; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (b_it = 0; b_it < _tmp1__length1; b_it = b_it + 1) { +#line 3594 "TumblrPublishing.c" + PublishingTumblrBlogEntry* _tmp2_; + PublishingTumblrBlogEntry* b = NULL; +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = _publishing_tumblr_blog_entry_ref0 (b_collection[b_it]); +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + b = _tmp2_; +#line 3601 "TumblrPublishing.c" + { + GtkComboBoxText* _tmp3_; + PublishingTumblrBlogEntry* _tmp4_; + const gchar* _tmp5_; +#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->blog_combo; +#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = b; +#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _tmp4_->blog; +#line 520 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_combo_box_text_append_text (_tmp3_, _tmp5_); +#line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_tumblr_blog_entry_unref0 (b); +#line 3616 "TumblrPublishing.c" + } + } + } +#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = self->priv->blog_combo; +#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = self->priv->publisher; +#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (_tmp7_); +#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_); +#line 3628 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { + PublishingTumblrTumblrPublisher* _tmp0_; + GtkComboBoxText* _tmp1_; + gint _tmp2_; +#line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->publisher; +#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->blog_combo; +#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); +#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_set_persistent_default_blog (_tmp0_, _tmp2_); +#line 3647 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { + PublishingTumblrSizeEntry** _tmp0_; + gint _tmp0__length1; +#line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->sizes; +#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0__length1 = self->priv->sizes_length1; +#line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp0_ != NULL) { +#line 3662 "TumblrPublishing.c" + PublishingTumblrSizeEntry** _tmp1_; + gint _tmp1__length1; + GtkComboBoxText* _tmp6_; + PublishingTumblrTumblrPublisher* _tmp7_; + gint _tmp8_; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->sizes; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1__length1 = self->priv->sizes_length1; +#line 3672 "TumblrPublishing.c" + { + PublishingTumblrSizeEntry** e_collection = NULL; + gint e_collection_length1 = 0; + gint _e_collection_size_ = 0; + gint e_it = 0; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + e_collection = _tmp1_; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + e_collection_length1 = _tmp1__length1; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) { +#line 3684 "TumblrPublishing.c" + PublishingTumblrSizeEntry* _tmp2_; + PublishingTumblrSizeEntry* e = NULL; +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = _publishing_tumblr_size_entry_ref0 (e_collection[e_it]); +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + e = _tmp2_; +#line 3691 "TumblrPublishing.c" + { + GtkComboBoxText* _tmp3_; + PublishingTumblrSizeEntry* _tmp4_; + const gchar* _tmp5_; +#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = self->priv->size_combo; +#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = e; +#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = _tmp4_->title; +#line 532 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_combo_box_text_append_text (_tmp3_, _tmp5_); +#line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_tumblr_size_entry_unref0 (e); +#line 3706 "TumblrPublishing.c" + } + } + } +#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = self->priv->size_combo; +#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = self->priv->publisher; +#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (_tmp7_); +#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_); +#line 3718 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { + PublishingTumblrTumblrPublisher* _tmp0_; + GtkComboBoxText* _tmp1_; + gint _tmp2_; +#line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->publisher; +#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = self->priv->size_combo; +#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); +#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_set_persistent_default_size (_tmp0_, _tmp2_); +#line 3737 "TumblrPublishing.c" +} + + +void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +#line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); +#line 3746 "TumblrPublishing.c" +} + + +void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +#line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); +#line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); +#line 3755 "TumblrPublishing.c" +} + + +static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) { + PublishingTumblrTumblrPublisherPublishingOptionsPane * self; + GtkWidget* result = NULL; + GtkBox* _tmp0_; + GtkWidget* _tmp1_; +#line 550 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); +#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->pane_widget; +#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, gtk_widget_get_type (), GtkWidget)); +#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp1_; +#line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 3774 "TumblrPublishing.c" +} + + +static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) { + PublishingTumblrTumblrPublisherPublishingOptionsPane * self; + SpitPublishingDialogPaneGeometryOptions result = 0; +#line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); +#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; +#line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 3787 "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 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3794 "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 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); +#line 3801 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) { + PublishingTumblrTumblrPublisherPublishingOptionsPane * self; +#line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); +#line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3813 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) { + PublishingTumblrTumblrPublisherPublishingOptionsPane * self; + guint _tmp0_; + guint _tmp1_; +#line 563 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); +#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("publish", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp0_, NULL, FALSE); +#line 564 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); +#line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3831 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass * klass) { +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate)); +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = 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 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = 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 3846 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) { +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_widget = (GtkWidget* (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_preferred_geometry = (SpitPublishingDialogPaneGeometryOptions (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled; +#line 3861 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init (PublishingTumblrTumblrPublisherPublishingOptionsPane * self) { + gchar* _tmp0_; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); +#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->pane_widget = NULL; +#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->upload_info_label = NULL; +#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->size_label = NULL; +#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_label = NULL; +#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->logout_button = NULL; +#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->publish_button = NULL; +#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->size_combo = NULL; +#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_combo = NULL; +#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = NULL; +#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes_length1 = 0; +#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_sizes_size_ = self->priv->sizes_length1; +#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = NULL; +#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs_length1 = 0; +#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_blogs_size_ = self->priv->blogs_length1; +#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_strdup (""); +#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->username = _tmp0_; +#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->publisher = NULL; +#line 3903 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject * obj) { + PublishingTumblrTumblrPublisherPublishingOptionsPane * self; +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); +#line 436 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->builder); +#line 437 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->pane_widget); +#line 438 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->upload_info_label); +#line 439 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->size_label); +#line 440 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->blog_label); +#line 441 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->logout_button); +#line 442 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->publish_button); +#line 443 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->size_combo); +#line 444 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->blog_combo); +#line 445 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); +#line 446 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); +#line 447 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->username); +#line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->publisher); +#line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class)->finalize (obj); +#line 3939 "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; +} + + +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session) { + PublishingTumblrTumblrPublisherUserInfoFetchTransaction* self = NULL; + PublishingRESTSupportOAuth1Session* _tmp0_; +#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); +#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = session; +#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrTumblrPublisherUserInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, _tmp0_, "https://api.tumblr.com/v2/user/info", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); +#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 3971 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) { +#line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, session); +#line 3978 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass * klass) { +#line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass); +#line 3985 "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_REST_SUPPORT_OAUTH1_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_; + gchar* bytes = NULL; + gchar* _tmp1_; + gint bytes_length1; + gint _bytes_size_; + gchar* _tmp2_; + gint _tmp2__length1; + gchar _tmp3_; + guint8* _tmp4_; + gint _tmp4__length1; + GString* _tmp14_; + const gchar* _tmp15_; + gchar* _tmp16_; +#line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL); +#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_string_new (""); +#line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + s = _tmp0_; +#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = g_new0 (gchar, 2); +#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + bytes = _tmp1_; +#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + bytes_length1 = 2; +#line 580 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _bytes_size_ = bytes_length1; +#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = bytes; +#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2__length1 = bytes_length1; +#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_[1] = (gchar) 0; +#line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = _tmp2_[1]; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = data; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4__length1 = data_length1; +#line 4047 "TumblrPublishing.c" + { + guint8* byte_collection = NULL; + gint byte_collection_length1 = 0; + gint _byte_collection_size_ = 0; + gint byte_it = 0; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + byte_collection = _tmp4_; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + byte_collection_length1 = _tmp4__length1; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + for (byte_it = 0; byte_it < _tmp4__length1; byte_it = byte_it + 1) { +#line 4059 "TumblrPublishing.c" + guint8 byte = 0U; +#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + byte = byte_collection[byte_it]; +#line 4063 "TumblrPublishing.c" + { + guint8 _tmp5_; +#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = byte; +#line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (((gint) _tmp5_) == 0) { +#line 4070 "TumblrPublishing.c" + GString* _tmp6_; +#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = s; +#line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_string_append (_tmp6_, "%00"); +#line 4076 "TumblrPublishing.c" + } else { + gchar* _tmp7_; + gint _tmp7__length1; + guint8 _tmp8_; + gchar _tmp9_; + GString* _tmp10_; + gchar* _tmp11_; + gint _tmp11__length1; + gchar* _tmp12_; + gchar* _tmp13_; +#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = bytes; +#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7__length1 = bytes_length1; +#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = byte; +#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_[0] = (gchar) _tmp8_; +#line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = _tmp7_[0]; +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = s; +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = bytes; +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11__length1 = bytes_length1; +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = soup_uri_encode ((const gchar*) _tmp11_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = _tmp12_; +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_string_append (_tmp10_, _tmp13_); +#line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp13_); +#line 4111 "TumblrPublishing.c" + } + } + } + } +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp14_ = s; +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp15_ = _tmp14_->str; +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = g_strdup (_tmp15_); +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp16_; +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + bytes = (g_free (bytes), NULL); +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_string_free0 (s); +#line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 4130 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url) { + PublishingTumblrTumblrPublisherUploadTransaction* self = NULL; + PublishingRESTSupportOAuth1Session* _tmp0_; + SpitPublishingPublishable* _tmp1_; + const gchar* _tmp2_; + gchar* _tmp3_; + gchar* _tmp4_; +#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); +#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); +#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (blog_url != NULL, NULL); +#line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:596: Init upload transaction"); +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = session; +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = publishable; +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = blog_url; +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = g_strdup_printf ("https://api.tumblr.com/v2/blog/%s/post", _tmp2_); +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = _tmp3_; +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = (PublishingTumblrTumblrPublisherUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, _tmp0_, _tmp1_, _tmp4_); +#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp4_); +#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 4165 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url) { +#line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_tumblr_publisher_upload_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, session, publishable, blog_url); +#line 4172 "TumblrPublishing.c" +} + + +static guint8* string_get_data (const gchar* self, int* result_length1) { + guint8* result; + guint8* res = NULL; + gint res_length1; + gint _res_size_; + gint _tmp0_; + gint _tmp1_; + gint _tmp2_; + guint8* _tmp3_; + gint _tmp3__length1; + guint8* _tmp4_; + gint _tmp4__length1; +#line 1428 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + g_return_val_if_fail (self != NULL, NULL); +#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + res = (guint8*) self; +#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + res_length1 = -1; +#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _res_size_ = res_length1; +#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp0_ = strlen (self); +#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp1_ = _tmp0_; +#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + res_length1 = (gint) _tmp1_; +#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp2_ = res_length1; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp3_ = res; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp3__length1 = res_length1; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp4_ = _tmp3_; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp4__length1 = _tmp3__length1; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (result_length1) { +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + *result_length1 = _tmp4__length1; +#line 4216 "TumblrPublishing.c" + } +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = _tmp4_; +#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 4222 "TumblrPublishing.c" +} + + +static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) { + gchar* result = NULL; + const gchar* _tmp0_; + gboolean _tmp1_ = FALSE; + gboolean _tmp2_ = FALSE; + gchar** _tmp3_; + gint _tmp3__length1; +#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp0_ = separator; +#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp0_ == NULL) { +#line 1079 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + separator = ""; +#line 4239 "TumblrPublishing.c" + } +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp3_ = str_array; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp3__length1 = str_array_length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp3_ != NULL) { +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp2_ = TRUE; +#line 4249 "TumblrPublishing.c" + } else { + gchar** _tmp4_; + gint _tmp4__length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp4_ = str_array; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp4__length1 = str_array_length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp2_ = _tmp4__length1 > 0; +#line 4259 "TumblrPublishing.c" + } +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp2_) { +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp1_ = TRUE; +#line 4265 "TumblrPublishing.c" + } else { + gboolean _tmp5_ = FALSE; + gchar** _tmp6_; + gint _tmp6__length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp6_ = str_array; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp6__length1 = str_array_length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp6__length1 == -1) { +#line 4276 "TumblrPublishing.c" + gchar** _tmp7_; + gint _tmp7__length1; + const gchar* _tmp8_; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp7_ = str_array; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp7__length1 = str_array_length1; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp8_ = _tmp7_[0]; +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp5_ = _tmp8_ != NULL; +#line 4288 "TumblrPublishing.c" + } else { +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp5_ = FALSE; +#line 4292 "TumblrPublishing.c" + } +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp1_ = _tmp5_; +#line 4296 "TumblrPublishing.c" + } +#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp1_) { +#line 4300 "TumblrPublishing.c" + gint i = 0; + gsize len = 0UL; + gint _tmp31_; + gint _tmp33_; + gint _tmp34_; + gsize _tmp35_; + const gchar* _tmp36_; + gint _tmp37_; + gint _tmp38_; + gint _tmp39_; + const gchar* res = NULL; + gsize _tmp40_; + void* _tmp41_; + void* ptr = NULL; + const gchar* _tmp42_; + gchar** _tmp43_; + gint _tmp43__length1; + const gchar* _tmp44_; + void* _tmp45_; + const gchar* _tmp62_; +#line 1083 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + len = (gsize) 1; +#line 4323 "TumblrPublishing.c" + { + gboolean _tmp9_ = FALSE; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + i = 0; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp9_ = TRUE; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + while (TRUE) { +#line 4332 "TumblrPublishing.c" + gboolean _tmp11_ = FALSE; + gboolean _tmp12_ = FALSE; + gchar** _tmp13_; + gint _tmp13__length1; + gint _tmp21_ = 0; + gchar** _tmp22_; + gint _tmp22__length1; + gint _tmp23_; + const gchar* _tmp24_; + gsize _tmp30_; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (!_tmp9_) { +#line 4345 "TumblrPublishing.c" + gint _tmp10_; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp10_ = i; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + i = _tmp10_ + 1; +#line 4351 "TumblrPublishing.c" + } +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp9_ = FALSE; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp13_ = str_array; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp13__length1 = str_array_length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp13__length1 != -1) { +#line 4361 "TumblrPublishing.c" + gint _tmp14_; + gchar** _tmp15_; + gint _tmp15__length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp14_ = i; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp15_ = str_array; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp15__length1 = str_array_length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp12_ = _tmp14_ < _tmp15__length1; +#line 4373 "TumblrPublishing.c" + } else { +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp12_ = FALSE; +#line 4377 "TumblrPublishing.c" + } +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp12_) { +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp11_ = TRUE; +#line 4383 "TumblrPublishing.c" + } else { + gboolean _tmp16_ = FALSE; + gchar** _tmp17_; + gint _tmp17__length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp17_ = str_array; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp17__length1 = str_array_length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp17__length1 == -1) { +#line 4394 "TumblrPublishing.c" + gchar** _tmp18_; + gint _tmp18__length1; + gint _tmp19_; + const gchar* _tmp20_; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp18_ = str_array; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp18__length1 = str_array_length1; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp19_ = i; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp20_ = _tmp18_[_tmp19_]; +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp16_ = _tmp20_ != NULL; +#line 4409 "TumblrPublishing.c" + } else { +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp16_ = FALSE; +#line 4413 "TumblrPublishing.c" + } +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp11_ = _tmp16_; +#line 4417 "TumblrPublishing.c" + } +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (!_tmp11_) { +#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + break; +#line 4423 "TumblrPublishing.c" + } +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp22_ = str_array; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp22__length1 = str_array_length1; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp23_ = i; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp24_ = _tmp22_[_tmp23_]; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp24_ != NULL) { +#line 4435 "TumblrPublishing.c" + gchar** _tmp25_; + gint _tmp25__length1; + gint _tmp26_; + const gchar* _tmp27_; + gint _tmp28_; + gint _tmp29_; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp25_ = str_array; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp25__length1 = str_array_length1; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp26_ = i; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp27_ = _tmp25_[_tmp26_]; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp28_ = strlen ((const gchar*) _tmp27_); +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp29_ = _tmp28_; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp21_ = _tmp29_; +#line 4456 "TumblrPublishing.c" + } else { +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp21_ = 0; +#line 4460 "TumblrPublishing.c" + } +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp30_ = len; +#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + len = _tmp30_ + _tmp21_; +#line 4466 "TumblrPublishing.c" + } + } +#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp31_ = i; +#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp31_ == 0) { +#line 4473 "TumblrPublishing.c" + gchar* _tmp32_; +#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp32_ = g_strdup (""); +#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = _tmp32_; +#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 4481 "TumblrPublishing.c" + } +#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp33_ = i; +#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + str_array_length1 = _tmp33_; +#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp34_ = str_array_length1; +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp35_ = len; +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp36_ = separator; +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp37_ = strlen ((const gchar*) _tmp36_); +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp38_ = _tmp37_; +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp39_ = i; +#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1)); +#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp40_ = len; +#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp41_ = g_malloc (_tmp40_); +#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + res = _tmp41_; +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp42_ = res; +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp43_ = str_array; +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp43__length1 = str_array_length1; +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp44_ = _tmp43_[0]; +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_); +#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + ptr = _tmp45_; +#line 4519 "TumblrPublishing.c" + { + gboolean _tmp46_ = FALSE; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + i = 1; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp46_ = TRUE; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + while (TRUE) { +#line 4528 "TumblrPublishing.c" + gint _tmp48_; + gchar** _tmp49_; + gint _tmp49__length1; + void* _tmp50_; + const gchar* _tmp51_; + void* _tmp52_; + const gchar* _tmp53_ = NULL; + gchar** _tmp54_; + gint _tmp54__length1; + gint _tmp55_; + const gchar* _tmp56_; + void* _tmp60_; + void* _tmp61_; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (!_tmp46_) { +#line 4544 "TumblrPublishing.c" + gint _tmp47_; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp47_ = i; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + i = _tmp47_ + 1; +#line 4550 "TumblrPublishing.c" + } +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp46_ = FALSE; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp48_ = i; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp49_ = str_array; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp49__length1 = str_array_length1; +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (!(_tmp48_ < _tmp49__length1)) { +#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + break; +#line 4564 "TumblrPublishing.c" + } +#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp50_ = ptr; +#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp51_ = separator; +#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_); +#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + ptr = _tmp52_; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp54_ = str_array; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp54__length1 = str_array_length1; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp55_ = i; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp56_ = _tmp54_[_tmp55_]; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + if (_tmp56_ != NULL) { +#line 4584 "TumblrPublishing.c" + gchar** _tmp57_; + gint _tmp57__length1; + gint _tmp58_; + const gchar* _tmp59_; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp57_ = str_array; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp57__length1 = str_array_length1; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp58_ = i; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp59_ = _tmp57_[_tmp58_]; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp53_ = (const gchar*) _tmp59_; +#line 4599 "TumblrPublishing.c" + } else { +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp53_ = ""; +#line 4603 "TumblrPublishing.c" + } +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp60_ = ptr; +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp61_ = g_stpcpy (_tmp60_, _tmp53_); +#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + ptr = _tmp61_; +#line 4611 "TumblrPublishing.c" + } + } +#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp62_ = res; +#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + res = NULL; +#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = (gchar*) _tmp62_; +#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 4622 "TumblrPublishing.c" + } else { + gchar* _tmp63_; +#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + _tmp63_ = g_strdup (""); +#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + result = _tmp63_; +#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + return result; +#line 4631 "TumblrPublishing.c" + } +} + + +static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) { + PublishingTumblrTumblrPublisherUploadTransaction * self; + gchar* payload = NULL; + gsize payload_length = 0UL; + PublishingRESTSupportArgument** request_arguments = NULL; + gint _tmp24_; + PublishingRESTSupportArgument** _tmp25_; + gint request_arguments_length1; + gint _request_arguments_size_; + PublishingRESTSupportArgument** _tmp26_; + gint _tmp26__length1; + gchar* request_data = NULL; + PublishingRESTSupportArgument** _tmp27_; + gint _tmp27__length1; + gchar* _tmp28_; + SoupMessage* outbound_message = NULL; + gchar* _tmp29_; + gchar* _tmp30_; + SoupMessage* _tmp31_; + SoupMessage* _tmp32_; + SoupMessage* _tmp33_; + const gchar* _tmp34_; + guint8* _tmp35_; + gint _tmp35__length1; + guint8* _tmp36_; + gint _tmp36__length1; + GeeMapIterator* i = NULL; + GeeHashMap* _tmp37_; + GeeMapIterator* _tmp38_; + gboolean cont = FALSE; + GeeMapIterator* _tmp39_; + gboolean _tmp40_; + SoupMessage* _tmp52_; + GError * _inner_error_ = NULL; +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction); +#line 4672 "TumblrPublishing.c" + { + SpitPublishingPublishable* _tmp0_; + GFile* _tmp1_; + GFile* _tmp2_; + gchar* _tmp3_; + gchar* _tmp4_; + gchar* _tmp5_ = NULL; + gsize _tmp6_ = 0UL; + gchar* reqdata = NULL; + const gchar* _tmp7_; + guint8* _tmp8_; + gint _tmp8__length1; + guint8* _tmp9_; + gint _tmp9__length1; + gsize _tmp10_; + gchar* _tmp11_; + const gchar* _tmp12_; + gchar** keywords = NULL; + SpitPublishingPublishable* _tmp13_; + gint _tmp14_; + gchar** _tmp15_; + gint keywords_length1; + gint _keywords_size_; + gchar* tags = NULL; + gchar* _tmp16_; + gchar** _tmp17_; + gint _tmp17__length1; + const gchar* _tmp20_; + gchar* _tmp21_; + gchar* _tmp22_; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = spit_publishing_publishable_get_serialized_file (_tmp0_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = _tmp1_; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = g_file_get_path (_tmp2_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = _tmp3_; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_file_get_contents (_tmp4_, &_tmp5_, &_tmp6_, &_inner_error_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + payload = _tmp5_; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + payload_length = _tmp6_; +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp4_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (_tmp2_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_inner_error_->domain == G_FILE_ERROR) { +#line 4729 "TumblrPublishing.c" + goto __catch24_g_file_error; + } +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 4740 "TumblrPublishing.c" + } +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp7_ = payload; +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp8_ = string_get_data (_tmp7_, &_tmp8__length1); +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9_ = _tmp8_; +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp9__length1 = _tmp8__length1; +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp10_ = payload_length; +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp11_ = publishing_tumblr_tumblr_publisher_upload_transaction_encode (self, _tmp9_ + 0, ((gint) _tmp10_) - 0); +#line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + reqdata = _tmp11_; +#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp12_ = reqdata; +#line 612 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "data[0]", _tmp12_); +#line 613 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "type", "photo"); +#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp13_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->publishable; +#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp15_ = spit_publishing_publishable_get_publishing_keywords (_tmp13_, &_tmp14_); +#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + keywords = _tmp15_; +#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + keywords_length1 = _tmp14_; +#line 614 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _keywords_size_ = keywords_length1; +#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp16_ = g_strdup (""); +#line 615 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tags = _tmp16_; +#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17_ = keywords; +#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp17__length1 = keywords_length1; +#line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_tmp17_ != NULL) { +#line 4782 "TumblrPublishing.c" + gchar** _tmp18_; + gint _tmp18__length1; + gchar* _tmp19_; +#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp18_ = keywords; +#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp18__length1 = keywords_length1; +#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp19_ = _vala_g_strjoinv (",", _tmp18_, _tmp18__length1); +#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (tags); +#line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + tags = _tmp19_; +#line 4796 "TumblrPublishing.c" + } +#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp20_ = tags; +#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp21_ = soup_uri_encode (_tmp20_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); +#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp22_ = _tmp21_; +#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_add_argument (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), "tags", _tmp22_); +#line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp22_); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (tags); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (reqdata); +#line 4814 "TumblrPublishing.c" + } + goto __finally24; + __catch24_g_file_error: + { + GError* e = NULL; + GError* _tmp23_; +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + e = _inner_error_; +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _inner_error_ = NULL; +#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp23_ = g_error_new_literal (SPIT_PUBLISHING_PUBLISHING_ERROR, SPIT_PUBLISHING_PUBLISHING_ERROR_LOCAL_FILE_ERROR, _ ("A temporary file needed for publishing is unavailable")); +#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _inner_error_ = _tmp23_; +#line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_error_free0 (e); +#line 4831 "TumblrPublishing.c" + goto __finally24; + } + __finally24: +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_propagate_error (error, _inner_error_); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 4845 "TumblrPublishing.c" + } else { +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 4855 "TumblrPublishing.c" + } + } +#line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_oauth1_upload_transaction_authorize (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction)); +#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp25_ = publishing_rest_support_transaction_get_arguments (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_tmp24_); +#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_arguments = _tmp25_; +#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_arguments_length1 = _tmp24_; +#line 629 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _request_arguments_size_ = request_arguments_length1; +#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp26_ = request_arguments; +#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp26__length1 = request_arguments_length1; +#line 630 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _vala_assert (_tmp26__length1 > 0, "request_arguments.length > 0"); +#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp27_ = request_arguments; +#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp27__length1 = request_arguments_length1; +#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp28_ = publishing_rest_support_argument_serialize_list (_tmp27_, _tmp27__length1, FALSE, "&"); +#line 632 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_data = _tmp28_; +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp29_ = publishing_rest_support_transaction_get_endpoint_url (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction)); +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp30_ = _tmp29_; +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp31_ = soup_message_new ("POST", _tmp30_); +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp32_ = _tmp31_; +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp30_); +#line 634 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + outbound_message = _tmp32_; +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp33_ = outbound_message; +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp34_ = request_data; +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp35_ = string_get_data (_tmp34_, &_tmp35__length1); +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp36_ = _tmp35_; +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp36__length1 = _tmp35__length1; +#line 635 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + soup_message_set_request (_tmp33_, "application/x-www-form-urlencoded", SOUP_MEMORY_COPY, _tmp36_, (gsize) _tmp36__length1); +#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp37_ = G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportOAuth1UploadTransaction), PUBLISHING_REST_SUPPORT_TYPE_UPLOAD_TRANSACTION, PublishingRESTSupportUploadTransaction)->message_headers; +#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp38_ = gee_abstract_map_map_iterator (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, GEE_TYPE_ABSTRACT_MAP, GeeAbstractMap)); +#line 638 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + i = _tmp38_; +#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp39_ = i; +#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp40_ = gee_map_iterator_next (_tmp39_); +#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + cont = _tmp40_; +#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + while (TRUE) { +#line 4920 "TumblrPublishing.c" + gboolean _tmp41_; + SoupMessage* _tmp42_; + SoupMessageHeaders* _tmp43_; + GeeMapIterator* _tmp44_; + gpointer _tmp45_; + gchar* _tmp46_; + GeeMapIterator* _tmp47_; + gpointer _tmp48_; + gchar* _tmp49_; + GeeMapIterator* _tmp50_; + gboolean _tmp51_; +#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp41_ = cont; +#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (!_tmp41_) { +#line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + break; +#line 4938 "TumblrPublishing.c" + } +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp42_ = outbound_message; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp43_ = _tmp42_->request_headers; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp44_ = i; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp45_ = gee_map_iterator_get_key (_tmp44_); +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp46_ = (gchar*) _tmp45_; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp47_ = i; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp48_ = gee_map_iterator_get_value (_tmp47_); +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp49_ = (gchar*) _tmp48_; +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + soup_message_headers_append (_tmp43_, _tmp46_, _tmp49_); +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp49_); +#line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (_tmp46_); +#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp50_ = i; +#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp51_ = gee_map_iterator_next (_tmp50_); +#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + cont = _tmp51_; +#line 4968 "TumblrPublishing.c" + } +#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp52_ = outbound_message; +#line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp52_); +#line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_rest_support_transaction_send (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (G_UNLIKELY (_inner_error_ != NULL)) { +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_propagate_error (error, _inner_error_); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (i); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (outbound_message); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (request_data); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 4996 "TumblrPublishing.c" + } else { +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (i); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (outbound_message); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (request_data); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_clear_error (&_inner_error_); +#line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return; +#line 5014 "TumblrPublishing.c" + } + } +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (i); +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (outbound_message); +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (request_data); +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); +#line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (payload); +#line 5027 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_upload_transaction_class_init (PublishingTumblrTumblrPublisherUploadTransactionClass * klass) { +#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = g_type_class_peek_parent (klass); +#line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_tumblr_tumblr_publisher_upload_transaction_real_execute; +#line 5036 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_upload_transaction_instance_init (PublishingTumblrTumblrPublisherUploadTransaction * self) { +} + + +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_OAUTH1_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, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) { + PublishingTumblrTumblrPublisherUploader* self = NULL; + PublishingRESTSupportOAuth1Session* _tmp0_; + SpitPublishingPublishable** _tmp1_; + gint _tmp1__length1; + const gchar* _tmp2_; + gchar* _tmp3_; +#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); +#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (blog_url != NULL, NULL); +#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = session; +#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = publishables; +#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1__length1 = publishables_length1; +#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp2_ = blog_url; +#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = g_strdup (_tmp2_); +#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->blog_url); +#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_url = _tmp3_; +#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return self; +#line 5085 "TumblrPublishing.c" +} + + +PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) { +#line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return publishing_tumblr_tumblr_publisher_uploader_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, session, publishables, publishables_length1, blog_url); +#line 5092 "TumblrPublishing.c" +} + + +static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) { + PublishingTumblrTumblrPublisherUploader * self; + PublishingRESTSupportTransaction* result = NULL; + PublishingRESTSupportSession* _tmp0_; + PublishingRESTSupportOAuth1Session* _tmp1_; + SpitPublishingPublishable* _tmp2_; + SpitPublishingPublishable* _tmp3_; + const gchar* _tmp4_; + PublishingTumblrTumblrPublisherUploadTransaction* _tmp5_; + PublishingRESTSupportTransaction* _tmp6_; +#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader); +#line 663 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (publishable), NULL); +#line 665 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_debug ("TumblrPublishing.vala:665: Create upload transaction"); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = publishing_rest_support_batch_uploader_get_session (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader)); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, PUBLISHING_REST_SUPPORT_OAUTH1_TYPE_SESSION, PublishingRESTSupportOAuth1Session); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp3_ = _tmp2_; +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp4_ = self->priv->blog_url; +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp5_ = publishing_tumblr_tumblr_publisher_upload_transaction_new (_tmp1_, _tmp3_, _tmp4_); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (_tmp3_); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_session_unref0 (_tmp1_); +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + result = _tmp6_; +#line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + return result; +#line 5134 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTumblrTumblrPublisherUploaderClass * klass) { +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_uploader_parent_class = g_type_class_peek_parent (klass); +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + ((PublishingRESTSupportBatchUploaderClass *) klass)->finalize = publishing_tumblr_tumblr_publisher_uploader_finalize; +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherUploaderPrivate)); +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_tumblr_tumblr_publisher_uploader_real_create_transaction; +#line 5147 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_uploader_instance_init (PublishingTumblrTumblrPublisherUploader * self) { + gchar* _tmp0_; +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE (self); +#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_strdup (""); +#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blog_url = _tmp0_; +#line 5159 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * obj) { + PublishingTumblrTumblrPublisherUploader * self; +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader); +#line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->blog_url); +#line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_tumblr_tumblr_publisher_uploader_parent_class)->finalize (obj); +#line 5171 "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; +} + + +static void publishing_tumblr_tumblr_publisher_class_init (PublishingTumblrTumblrPublisherClass * klass) { +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_parent_class = g_type_class_peek_parent (klass); +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPrivate)); +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_finalize; +#line 5194 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) { +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->get_service = (SpitPublishingService* (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_get_service; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->is_running = (gboolean (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_is_running; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->start = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_start; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_stop; +#line 5209 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTumblrPublisher * self) { + gchar* _tmp0_; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE (self); +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter = NULL; +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target = self; +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target_destroy_notify = NULL; +#line 90 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->running = FALSE; +#line 91 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->was_started = FALSE; +#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->session = NULL; +#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->publishing_options_pane = NULL; +#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = NULL; +#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes_length1 = 0; +#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_sizes_size_ = self->priv->sizes_length1; +#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = NULL; +#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs_length1 = 0; +#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->_blogs_size_ = self->priv->blogs_length1; +#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = g_strdup (""); +#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->username = _tmp0_; +#line 5247 "TumblrPublishing.c" +} + + +static void publishing_tumblr_tumblr_publisher_finalize (GObject * obj) { + PublishingTumblrTumblrPublisher * self; + SpitPublishingAuthenticator* _tmp0_; + guint _tmp1_; +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); +#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _tmp0_ = self->priv->authenticator; +#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + g_signal_parse_name ("authenticated", SPIT_PUBLISHING_TYPE_AUTHENTICATOR, &_tmp1_, NULL, FALSE); +#line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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_authenticator_authenticated_spit_publishing_authenticator_authenticated, self); +#line 87 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->service); +#line 88 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->host); +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter = NULL; +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target = NULL; +#line 89 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->progress_reporter_target_destroy_notify = NULL; +#line 92 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _publishing_rest_support_session_unref0 (self->priv->session); +#line 93 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->publishing_options_pane); +#line 94 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); +#line 95 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); +#line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_free0 (self->priv->username); +#line 97 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + _g_object_unref0 (self->priv->authenticator); +#line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" + G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_parent_class)->finalize (obj); +#line 5289 "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); +} + + + -- cgit v1.2.3 From ab841afa5cb39058d9ab2cebb67cfe6369443f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 25 Jun 2018 20:55:59 +0200 Subject: New upstream version 0.28.3 --- plugins/shotwell-publishing/TumblrPublishing.c | 3738 +++++++++++++----------- 1 file changed, 1973 insertions(+), 1765 deletions(-) (limited to 'plugins/shotwell-publishing/TumblrPublishing.c') diff --git a/plugins/shotwell-publishing/TumblrPublishing.c b/plugins/shotwell-publishing/TumblrPublishing.c index 0a3643f..862982d 100644 --- a/plugins/shotwell-publishing/TumblrPublishing.c +++ b/plugins/shotwell-publishing/TumblrPublishing.c @@ -1,4 +1,4 @@ -/* TumblrPublishing.c generated by valac 0.36.6, the Vala compiler +/* TumblrPublishing.c generated by valac 0.40.4, the Vala compiler * generated from TumblrPublishing.vala, do not modify */ /* Copyright 2012 BJA Electronics @@ -8,6 +8,7 @@ * (version 2.1 or later). See the COPYING file in this distribution. */ + #include #include #include @@ -38,6 +39,11 @@ typedef struct _TumblrService TumblrService; typedef struct _TumblrServiceClass TumblrServiceClass; typedef struct _TumblrServicePrivate TumblrServicePrivate; +enum { + TUMBLR_SERVICE_0_PROPERTY, + TUMBLR_SERVICE_NUM_PROPERTIES +}; +static GParamSpec* tumblr_service_properties[TUMBLR_SERVICE_NUM_PROPERTIES]; #define _g_free0(var) (var = (g_free (var), NULL)) #define PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER (publishing_tumblr_tumblr_publisher_get_type ()) @@ -84,6 +90,11 @@ typedef struct _PublishingTumblrTumblrPublisherPrivate PublishingTumblrTumblrPub typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPane PublishingTumblrTumblrPublisherPublishingOptionsPane; typedef struct _PublishingTumblrTumblrPublisherPublishingOptionsPaneClass PublishingTumblrTumblrPublisherPublishingOptionsPaneClass; +enum { + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_0_PROPERTY, + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_NUM_PROPERTIES +}; +static GParamSpec* publishing_tumblr_tumblr_publisher_properties[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_NUM_PROPERTIES]; #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 _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL))) @@ -116,14 +127,19 @@ typedef struct _PublishingTumblrTumblrPublisherUploader PublishingTumblrTumblrPu 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 _PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate PublishingTumblrTumblrPublisherPublishingOptionsPanePrivate; +enum { + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_0_PROPERTY, + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES +}; +static GParamSpec* publishing_tumblr_tumblr_publisher_publishing_options_pane_properties[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_PROPERTIES]; #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))) enum { PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL, - PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LAST_SIGNAL + PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS }; -static guint publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LAST_SIGNAL] = {0}; +static guint publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_NUM_SIGNALS] = {0}; typedef struct _PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate PublishingTumblrTumblrPublisherUserInfoFetchTransactionPrivate; #define PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION (publishing_tumblr_tumblr_publisher_upload_transaction_get_type ()) @@ -296,21 +312,28 @@ static gpointer publishing_tumblr_tumblr_publisher_uploader_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); +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_dup8 (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); +static void tumblr_service_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info); +static GdkPixbuf** _vala_array_dup8 (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); @@ -320,131 +343,214 @@ static void tumblr_service_finalize (GObject * obj); #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); +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); +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); +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); +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_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_authenticator_authenticated (PublishingTumblrTumblrPublisher* self); -static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, gpointer self); -static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1); -static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); -static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); -static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value); -static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1); +static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, + gpointer self); +static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, + int* result_length1); +static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value); +static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value); +static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value); +static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, + int* result_length1); 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); gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self); -void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, gint size); +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); +void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, + gint blog); 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 (PublishingRESTSupportOAuth1Session* session); -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* 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); +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, + PublishingRESTSupportOAuth1Session* 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_add34 (PublishingTumblrBlogEntry** * array, int* length, int* size, PublishingTumblrBlogEntry* value); -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 _vala_array_add34 (PublishingTumblrBlogEntry** * array, + int* length, + int* size, + PublishingTumblrBlogEntry* value); +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_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_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); +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 (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url); -PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, PublishingRESTSupportOAuth1Session* 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); +PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable** publishables, + int publishables_length1, + const gchar* blog_url); +PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, + PublishingRESTSupportOAuth1Session* 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); 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_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_dup9 (PublishingTumblrSizeEntry** self, int length); -static PublishingTumblrBlogEntry** _vala_array_dup10 (PublishingTumblrBlogEntry** self, int length); +static PublishingTumblrSizeEntry** _vala_array_dup9 (PublishingTumblrSizeEntry** self, + int length); +static PublishingTumblrBlogEntry** _vala_array_dup10 (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_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_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_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); +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_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_USER_INFO_FETCH_TRANSACTION_DUMMY_PROPERTY -}; GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) G_GNUC_CONST; -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 (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url); -PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url); -static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error); +static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, + guint8* data, + int data_length1); +PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable* publishable, + const gchar* blog_url); +PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, + PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable* publishable, + const gchar* blog_url); +static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, + GError** error); #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 PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, + SpitPublishingPublishable* publishable); static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * 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); - - -TumblrService* tumblr_service_construct (GType object_type, GFile* resource_directory) { +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); + + +TumblrService* +tumblr_service_construct (GType object_type, + GFile* resource_directory) +{ TumblrService * self = NULL; GdkPixbuf** _tmp0_; gint _tmp0__length1; @@ -458,7 +564,7 @@ TumblrService* tumblr_service_construct (GType object_type, GFile* resource_dire _tmp0__length1 = tumblr_service_icon_pixbuf_set_length1; #line 14 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp0_ == NULL) { -#line 462 "TumblrPublishing.c" +#line 568 "TumblrPublishing.c" gint _tmp1_; GdkPixbuf** _tmp2_; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -471,44 +577,43 @@ TumblrService* tumblr_service_construct (GType object_type, GFile* resource_dire tumblr_service_icon_pixbuf_set_length1 = _tmp1_; #line 15 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tumblr_service_icon_pixbuf_set_size_ = tumblr_service_icon_pixbuf_set_length1; -#line 475 "TumblrPublishing.c" +#line 581 "TumblrPublishing.c" } #line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 479 "TumblrPublishing.c" +#line 585 "TumblrPublishing.c" } -TumblrService* tumblr_service_new (GFile* resource_directory) { +TumblrService* +tumblr_service_new (GFile* resource_directory) +{ #line 13 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return tumblr_service_construct (TYPE_TUMBLR_SERVICE, resource_directory); -#line 486 "TumblrPublishing.c" +#line 594 "TumblrPublishing.c" } -static gint tumblr_service_real_get_pluggable_interface (SpitPluggable* base, gint min_host_interface, gint max_host_interface) { +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_; - gint _tmp1_; - gint _tmp2_; #line 20 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); #line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = min_host_interface; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = max_host_interface; -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = spit_negotiate_interfaces (_tmp0_, _tmp1_, SPIT_PUBLISHING_CURRENT_INTERFACE); -#line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp2_; + result = spit_negotiate_interfaces (min_host_interface, max_host_interface, SPIT_PUBLISHING_CURRENT_INTERFACE); #line 21 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 508 "TumblrPublishing.c" +#line 611 "TumblrPublishing.c" } -static const gchar* tumblr_service_real_get_id (SpitPluggable* base) { +static const gchar* +tumblr_service_real_get_id (SpitPluggable* base) +{ TumblrService * self; const gchar* result = NULL; #line 25 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -517,11 +622,13 @@ static const gchar* tumblr_service_real_get_id (SpitPluggable* base) { result = "org.yorba.shotwell.publishing.tumblr"; #line 26 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 521 "TumblrPublishing.c" +#line 626 "TumblrPublishing.c" } -static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base) { +static const gchar* +tumblr_service_real_get_pluggable_name (SpitPluggable* base) +{ TumblrService * self; const gchar* result = NULL; #line 29 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -530,39 +637,47 @@ static const gchar* tumblr_service_real_get_pluggable_name (SpitPluggable* base) result = "Tumblr"; #line 30 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 534 "TumblrPublishing.c" +#line 641 "TumblrPublishing.c" } -static gpointer _g_object_ref0 (gpointer self) { +static gpointer +_g_object_ref0 (gpointer self) +{ #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self ? g_object_ref (self) : NULL; -#line 541 "TumblrPublishing.c" +#line 650 "TumblrPublishing.c" } -static GdkPixbuf** _vala_array_dup8 (GdkPixbuf** self, int length) { +static GdkPixbuf** +_vala_array_dup8 (GdkPixbuf** self, + int length) +{ GdkPixbuf** result; int i; #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result = g_new0 (GdkPixbuf*, length + 1); #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (i = 0; i < length; i++) { -#line 552 "TumblrPublishing.c" +#line 664 "TumblrPublishing.c" GdkPixbuf* _tmp0_; #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = _g_object_ref0 (self[i]); #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result[i] = _tmp0_; -#line 558 "TumblrPublishing.c" +#line 670 "TumblrPublishing.c" } #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 562 "TumblrPublishing.c" +#line 674 "TumblrPublishing.c" } -static void tumblr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo* info) { +static void +tumblr_service_real_get_info (SpitPluggable* base, + SpitPluggableInfo* info) +{ TumblrService * self; gchar* _tmp0_; gchar* _tmp1_; @@ -637,40 +752,45 @@ static void tumblr_service_real_get_info (SpitPluggable* base, SpitPluggableInfo (*info).icons = _tmp8_; #line 42 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*info).icons_length1 = _tmp8__length1; -#line 641 "TumblrPublishing.c" +#line 756 "TumblrPublishing.c" } -static void tumblr_service_real_activation (SpitPluggable* base, gboolean enabled) { +static void +tumblr_service_real_activation (SpitPluggable* base, + gboolean enabled) +{ TumblrService * self; #line 45 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); -#line 649 "TumblrPublishing.c" +#line 767 "TumblrPublishing.c" } -static SpitPublishingPublisher* tumblr_service_real_create_publisher (SpitPublishingService* base, SpitPublishingPluginHost* host) { +static SpitPublishingPublisher* +tumblr_service_real_create_publisher (SpitPublishingService* base, + SpitPublishingPluginHost* host) +{ TumblrService * self; SpitPublishingPublisher* result = NULL; - SpitPublishingPluginHost* _tmp0_; - PublishingTumblrTumblrPublisher* _tmp1_; + PublishingTumblrTumblrPublisher* _tmp0_; #line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TUMBLR_SERVICE, TumblrService); #line 48 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (SPIT_PUBLISHING_IS_PLUGIN_HOST (host), NULL); #line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = host; -#line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = publishing_tumblr_tumblr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), _tmp0_); + _tmp0_ = publishing_tumblr_tumblr_publisher_new (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_SERVICE, SpitPublishingService), host); #line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); + result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher); #line 49 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 670 "TumblrPublishing.c" +#line 788 "TumblrPublishing.c" } -static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media (SpitPublishingService* base) { +static SpitPublishingPublisherMediaType +tumblr_service_real_get_supported_media (SpitPublishingService* base) +{ TumblrService * self; SpitPublishingPublisherMediaType result = 0; #line 52 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -679,20 +799,24 @@ static SpitPublishingPublisherMediaType tumblr_service_real_get_supported_media result = SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_PHOTO | SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO; #line 53 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 683 "TumblrPublishing.c" +#line 803 "TumblrPublishing.c" } -static void tumblr_service_class_init (TumblrServiceClass * klass) { +static void +tumblr_service_class_init (TumblrServiceClass * klass) +{ #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" tumblr_service_parent_class = g_type_class_peek_parent (klass); #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" G_OBJECT_CLASS (klass)->finalize = tumblr_service_finalize; -#line 692 "TumblrPublishing.c" +#line 814 "TumblrPublishing.c" } -static void tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) { +static void +tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * iface) +{ #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" tumblr_service_spit_pluggable_parent_iface = g_type_interface_peek_parent (iface); #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -705,36 +829,44 @@ static void tumblr_service_spit_pluggable_interface_init (SpitPluggableIface * i iface->get_info = (void (*) (SpitPluggable *, SpitPluggableInfo*)) tumblr_service_real_get_info; #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" iface->activation = (void (*) (SpitPluggable *, gboolean)) tumblr_service_real_activation; -#line 709 "TumblrPublishing.c" +#line 833 "TumblrPublishing.c" } -static void tumblr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) { +static void +tumblr_service_spit_publishing_service_interface_init (SpitPublishingServiceIface * iface) +{ #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" tumblr_service_spit_publishing_service_parent_iface = g_type_interface_peek_parent (iface); #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" iface->create_publisher = (SpitPublishingPublisher* (*) (SpitPublishingService *, SpitPublishingPluginHost*)) tumblr_service_real_create_publisher; #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" iface->get_supported_media = (SpitPublishingPublisherMediaType (*) (SpitPublishingService *)) tumblr_service_real_get_supported_media; -#line 720 "TumblrPublishing.c" +#line 846 "TumblrPublishing.c" } -static void tumblr_service_instance_init (TumblrService * self) { +static void +tumblr_service_instance_init (TumblrService * self) +{ } -static void tumblr_service_finalize (GObject * obj) { +static void +tumblr_service_finalize (GObject * obj) +{ TumblrService * self; #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TUMBLR_SERVICE, TumblrService); #line 8 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" G_OBJECT_CLASS (tumblr_service_parent_class)->finalize (obj); -#line 734 "TumblrPublishing.c" +#line 864 "TumblrPublishing.c" } -GType tumblr_service_get_type (void) { +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 }; @@ -750,12 +882,14 @@ GType tumblr_service_get_type (void) { } -PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_construct (GType object_type, 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) +{ PublishingTumblrBlogEntry* self = NULL; - const gchar* _tmp0_; + gchar* _tmp0_; gchar* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; #line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (creator_blog != NULL, NULL); #line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -763,132 +897,156 @@ PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_construct (GType object_ #line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = (PublishingTumblrBlogEntry*) g_type_create_instance (object_type); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = creator_blog; -#line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); + _tmp0_ = g_strdup (creator_blog); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->blog); #line 71 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->blog = _tmp1_; + self->blog = _tmp0_; #line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = creator_url; -#line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = g_strdup (_tmp2_); + _tmp1_ = g_strdup (creator_url); #line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->url); #line 72 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->url = _tmp3_; + self->url = _tmp1_; #line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 784 "TumblrPublishing.c" +#line 914 "TumblrPublishing.c" } -PublishingTumblrBlogEntry* publishing_tumblr_blog_entry_new (const gchar* creator_blog, const gchar* creator_url) { +PublishingTumblrBlogEntry* +publishing_tumblr_blog_entry_new (const gchar* creator_blog, + const gchar* creator_url) +{ #line 70 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_blog_entry_construct (PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, creator_blog, creator_url); -#line 791 "TumblrPublishing.c" +#line 924 "TumblrPublishing.c" } -static void publishing_tumblr_value_blog_entry_init (GValue* value) { +static void +publishing_tumblr_value_blog_entry_init (GValue* value) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 798 "TumblrPublishing.c" +#line 933 "TumblrPublishing.c" } -static void publishing_tumblr_value_blog_entry_free_value (GValue* value) { +static void +publishing_tumblr_value_blog_entry_free_value (GValue* value) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (value->data[0].v_pointer) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_blog_entry_unref (value->data[0].v_pointer); -#line 807 "TumblrPublishing.c" +#line 944 "TumblrPublishing.c" } } -static void publishing_tumblr_value_blog_entry_copy_value (const GValue* src_value, GValue* dest_value) { +static void +publishing_tumblr_value_blog_entry_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (src_value->data[0].v_pointer) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" dest_value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (src_value->data[0].v_pointer); -#line 817 "TumblrPublishing.c" +#line 957 "TumblrPublishing.c" } else { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" dest_value->data[0].v_pointer = NULL; -#line 821 "TumblrPublishing.c" +#line 961 "TumblrPublishing.c" } } -static gpointer publishing_tumblr_value_blog_entry_peek_pointer (const GValue* value) { +static gpointer +publishing_tumblr_value_blog_entry_peek_pointer (const GValue* value) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return value->data[0].v_pointer; -#line 829 "TumblrPublishing.c" +#line 971 "TumblrPublishing.c" } -static gchar* publishing_tumblr_value_blog_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +publishing_tumblr_value_blog_entry_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (collect_values[0].v_pointer) { -#line 836 "TumblrPublishing.c" +#line 983 "TumblrPublishing.c" PublishingTumblrBlogEntry * object; object = collect_values[0].v_pointer; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (object->parent_instance.g_class == NULL) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 843 "TumblrPublishing.c" +#line 990 "TumblrPublishing.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 847 "TumblrPublishing.c" +#line 994 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = publishing_tumblr_blog_entry_ref (object); -#line 851 "TumblrPublishing.c" +#line 998 "TumblrPublishing.c" } else { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 855 "TumblrPublishing.c" +#line 1002 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return NULL; -#line 859 "TumblrPublishing.c" +#line 1006 "TumblrPublishing.c" } -static gchar* publishing_tumblr_value_blog_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +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 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (!object_p) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 870 "TumblrPublishing.c" +#line 1022 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (!value->data[0].v_pointer) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = NULL; -#line 876 "TumblrPublishing.c" +#line 1028 "TumblrPublishing.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = value->data[0].v_pointer; -#line 880 "TumblrPublishing.c" +#line 1032 "TumblrPublishing.c" } else { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); -#line 884 "TumblrPublishing.c" +#line 1036 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return NULL; -#line 888 "TumblrPublishing.c" +#line 1040 "TumblrPublishing.c" } -GParamSpec* publishing_tumblr_param_spec_blog_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +publishing_tumblr_param_spec_blog_entry (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ PublishingTumblrParamSpecBlogEntry* spec; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); @@ -898,20 +1056,25 @@ GParamSpec* publishing_tumblr_param_spec_blog_entry (const gchar* name, const gc G_PARAM_SPEC (spec)->value_type = object_type; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return G_PARAM_SPEC (spec); -#line 902 "TumblrPublishing.c" +#line 1060 "TumblrPublishing.c" } -gpointer publishing_tumblr_value_get_blog_entry (const GValue* value) { +gpointer +publishing_tumblr_value_get_blog_entry (const GValue* value) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY), NULL); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return value->data[0].v_pointer; -#line 911 "TumblrPublishing.c" +#line 1071 "TumblrPublishing.c" } -void publishing_tumblr_value_set_blog_entry (GValue* value, gpointer v_object) { +void +publishing_tumblr_value_set_blog_entry (GValue* value, + gpointer v_object) +{ PublishingTumblrBlogEntry * old; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); @@ -927,22 +1090,25 @@ void publishing_tumblr_value_set_blog_entry (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_blog_entry_ref (value->data[0].v_pointer); -#line 931 "TumblrPublishing.c" +#line 1094 "TumblrPublishing.c" } else { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 935 "TumblrPublishing.c" +#line 1098 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (old) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_blog_entry_unref (old); -#line 941 "TumblrPublishing.c" +#line 1104 "TumblrPublishing.c" } } -void publishing_tumblr_value_take_blog_entry (GValue* value, gpointer v_object) { +void +publishing_tumblr_value_take_blog_entry (GValue* value, + gpointer v_object) +{ PublishingTumblrBlogEntry * old; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY)); @@ -956,38 +1122,44 @@ void publishing_tumblr_value_take_blog_entry (GValue* value, gpointer v_object) g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = v_object; -#line 960 "TumblrPublishing.c" +#line 1126 "TumblrPublishing.c" } else { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 964 "TumblrPublishing.c" +#line 1130 "TumblrPublishing.c" } #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (old) { #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_blog_entry_unref (old); -#line 970 "TumblrPublishing.c" +#line 1136 "TumblrPublishing.c" } } -static void publishing_tumblr_blog_entry_class_init (PublishingTumblrBlogEntryClass * klass) { +static void +publishing_tumblr_blog_entry_class_init (PublishingTumblrBlogEntryClass * klass) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_blog_entry_parent_class = g_type_class_peek_parent (klass); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" ((PublishingTumblrBlogEntryClass *) klass)->finalize = publishing_tumblr_blog_entry_finalize; -#line 980 "TumblrPublishing.c" +#line 1148 "TumblrPublishing.c" } -static void publishing_tumblr_blog_entry_instance_init (PublishingTumblrBlogEntry * self) { +static void +publishing_tumblr_blog_entry_instance_init (PublishingTumblrBlogEntry * self) +{ #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->ref_count = 1; -#line 987 "TumblrPublishing.c" +#line 1157 "TumblrPublishing.c" } -static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * obj) { +static void +publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * obj) +{ PublishingTumblrBlogEntry * self; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_BLOG_ENTRY, PublishingTumblrBlogEntry); @@ -997,11 +1169,13 @@ static void publishing_tumblr_blog_entry_finalize (PublishingTumblrBlogEntry * o _g_free0 (self->blog); #line 69 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->url); -#line 1001 "TumblrPublishing.c" +#line 1173 "TumblrPublishing.c" } -GType publishing_tumblr_blog_entry_get_type (void) { +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 }; @@ -1015,18 +1189,22 @@ GType publishing_tumblr_blog_entry_get_type (void) { } -gpointer publishing_tumblr_blog_entry_ref (gpointer instance) { +gpointer +publishing_tumblr_blog_entry_ref (gpointer instance) +{ PublishingTumblrBlogEntry * self; self = instance; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_atomic_int_inc (&self->ref_count); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return instance; -#line 1026 "TumblrPublishing.c" +#line 1202 "TumblrPublishing.c" } -void publishing_tumblr_blog_entry_unref (gpointer instance) { +void +publishing_tumblr_blog_entry_unref (gpointer instance) +{ PublishingTumblrBlogEntry * self; self = instance; #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1035,143 +1213,169 @@ void publishing_tumblr_blog_entry_unref (gpointer instance) { PUBLISHING_TUMBLR_BLOG_ENTRY_GET_CLASS (self)->finalize (self); #line 67 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1039 "TumblrPublishing.c" +#line 1217 "TumblrPublishing.c" } } -PublishingTumblrSizeEntry* publishing_tumblr_size_entry_construct (GType object_type, const gchar* creator_title, gint creator_size) { +PublishingTumblrSizeEntry* +publishing_tumblr_size_entry_construct (GType object_type, + const gchar* creator_title, + gint creator_size) +{ PublishingTumblrSizeEntry* self = NULL; - const gchar* _tmp0_; - gchar* _tmp1_; - gint _tmp2_; + gchar* _tmp0_; #line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (creator_title != NULL, NULL); #line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = (PublishingTumblrSizeEntry*) g_type_create_instance (object_type); #line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = creator_title; -#line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = g_strdup (_tmp0_); + _tmp0_ = g_strdup (creator_title); #line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->title); #line 81 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->title = _tmp1_; + self->title = _tmp0_; #line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = creator_size; -#line 82 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->size = _tmp2_; + self->size = creator_size; #line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 1067 "TumblrPublishing.c" +#line 1243 "TumblrPublishing.c" } -PublishingTumblrSizeEntry* publishing_tumblr_size_entry_new (const gchar* creator_title, gint creator_size) { +PublishingTumblrSizeEntry* +publishing_tumblr_size_entry_new (const gchar* creator_title, + gint creator_size) +{ #line 80 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_size_entry_construct (PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, creator_title, creator_size); -#line 1074 "TumblrPublishing.c" +#line 1253 "TumblrPublishing.c" } -static void publishing_tumblr_value_size_entry_init (GValue* value) { +static void +publishing_tumblr_value_size_entry_init (GValue* value) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 1081 "TumblrPublishing.c" +#line 1262 "TumblrPublishing.c" } -static void publishing_tumblr_value_size_entry_free_value (GValue* value) { +static void +publishing_tumblr_value_size_entry_free_value (GValue* value) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (value->data[0].v_pointer) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_size_entry_unref (value->data[0].v_pointer); -#line 1090 "TumblrPublishing.c" +#line 1273 "TumblrPublishing.c" } } -static void publishing_tumblr_value_size_entry_copy_value (const GValue* src_value, GValue* dest_value) { +static void +publishing_tumblr_value_size_entry_copy_value (const GValue* src_value, + GValue* dest_value) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (src_value->data[0].v_pointer) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" dest_value->data[0].v_pointer = publishing_tumblr_size_entry_ref (src_value->data[0].v_pointer); -#line 1100 "TumblrPublishing.c" +#line 1286 "TumblrPublishing.c" } else { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" dest_value->data[0].v_pointer = NULL; -#line 1104 "TumblrPublishing.c" +#line 1290 "TumblrPublishing.c" } } -static gpointer publishing_tumblr_value_size_entry_peek_pointer (const GValue* value) { +static gpointer +publishing_tumblr_value_size_entry_peek_pointer (const GValue* value) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return value->data[0].v_pointer; -#line 1112 "TumblrPublishing.c" +#line 1300 "TumblrPublishing.c" } -static gchar* publishing_tumblr_value_size_entry_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +static gchar* +publishing_tumblr_value_size_entry_collect_value (GValue* value, + guint n_collect_values, + GTypeCValue* collect_values, + guint collect_flags) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (collect_values[0].v_pointer) { -#line 1119 "TumblrPublishing.c" +#line 1312 "TumblrPublishing.c" PublishingTumblrSizeEntry * object; object = collect_values[0].v_pointer; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (object->parent_instance.g_class == NULL) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 1126 "TumblrPublishing.c" +#line 1319 "TumblrPublishing.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 1130 "TumblrPublishing.c" +#line 1323 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = publishing_tumblr_size_entry_ref (object); -#line 1134 "TumblrPublishing.c" +#line 1327 "TumblrPublishing.c" } else { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 1138 "TumblrPublishing.c" +#line 1331 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return NULL; -#line 1142 "TumblrPublishing.c" +#line 1335 "TumblrPublishing.c" } -static gchar* publishing_tumblr_value_size_entry_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { +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 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (!object_p) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 1153 "TumblrPublishing.c" +#line 1351 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (!value->data[0].v_pointer) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = NULL; -#line 1159 "TumblrPublishing.c" +#line 1357 "TumblrPublishing.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = value->data[0].v_pointer; -#line 1163 "TumblrPublishing.c" +#line 1361 "TumblrPublishing.c" } else { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *object_p = publishing_tumblr_size_entry_ref (value->data[0].v_pointer); -#line 1167 "TumblrPublishing.c" +#line 1365 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return NULL; -#line 1171 "TumblrPublishing.c" +#line 1369 "TumblrPublishing.c" } -GParamSpec* publishing_tumblr_param_spec_size_entry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) { +GParamSpec* +publishing_tumblr_param_spec_size_entry (const gchar* name, + const gchar* nick, + const gchar* blurb, + GType object_type, + GParamFlags flags) +{ PublishingTumblrParamSpecSizeEntry* spec; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (g_type_is_a (object_type, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); @@ -1181,20 +1385,25 @@ GParamSpec* publishing_tumblr_param_spec_size_entry (const gchar* name, const gc G_PARAM_SPEC (spec)->value_type = object_type; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return G_PARAM_SPEC (spec); -#line 1185 "TumblrPublishing.c" +#line 1389 "TumblrPublishing.c" } -gpointer publishing_tumblr_value_get_size_entry (const GValue* value) { +gpointer +publishing_tumblr_value_get_size_entry (const GValue* value) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY), NULL); #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return value->data[0].v_pointer; -#line 1194 "TumblrPublishing.c" +#line 1400 "TumblrPublishing.c" } -void publishing_tumblr_value_set_size_entry (GValue* value, gpointer v_object) { +void +publishing_tumblr_value_set_size_entry (GValue* value, + gpointer v_object) +{ PublishingTumblrSizeEntry * old; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); @@ -1210,22 +1419,25 @@ void publishing_tumblr_value_set_size_entry (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_size_entry_ref (value->data[0].v_pointer); -#line 1214 "TumblrPublishing.c" +#line 1423 "TumblrPublishing.c" } else { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 1218 "TumblrPublishing.c" +#line 1427 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (old) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_size_entry_unref (old); -#line 1224 "TumblrPublishing.c" +#line 1433 "TumblrPublishing.c" } } -void publishing_tumblr_value_take_size_entry (GValue* value, gpointer v_object) { +void +publishing_tumblr_value_take_size_entry (GValue* value, + gpointer v_object) +{ PublishingTumblrSizeEntry * old; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY)); @@ -1239,38 +1451,44 @@ void publishing_tumblr_value_take_size_entry (GValue* value, gpointer v_object) g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = v_object; -#line 1243 "TumblrPublishing.c" +#line 1455 "TumblrPublishing.c" } else { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" value->data[0].v_pointer = NULL; -#line 1247 "TumblrPublishing.c" +#line 1459 "TumblrPublishing.c" } #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (old) { #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_size_entry_unref (old); -#line 1253 "TumblrPublishing.c" +#line 1465 "TumblrPublishing.c" } } -static void publishing_tumblr_size_entry_class_init (PublishingTumblrSizeEntryClass * klass) { +static void +publishing_tumblr_size_entry_class_init (PublishingTumblrSizeEntryClass * klass) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_size_entry_parent_class = g_type_class_peek_parent (klass); #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" ((PublishingTumblrSizeEntryClass *) klass)->finalize = publishing_tumblr_size_entry_finalize; -#line 1263 "TumblrPublishing.c" +#line 1477 "TumblrPublishing.c" } -static void publishing_tumblr_size_entry_instance_init (PublishingTumblrSizeEntry * self) { +static void +publishing_tumblr_size_entry_instance_init (PublishingTumblrSizeEntry * self) +{ #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->ref_count = 1; -#line 1270 "TumblrPublishing.c" +#line 1486 "TumblrPublishing.c" } -static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * obj) { +static void +publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * obj) +{ PublishingTumblrSizeEntry * self; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TYPE_SIZE_ENTRY, PublishingTumblrSizeEntry); @@ -1278,11 +1496,13 @@ static void publishing_tumblr_size_entry_finalize (PublishingTumblrSizeEntry * o g_signal_handlers_destroy (self); #line 77 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->title); -#line 1282 "TumblrPublishing.c" +#line 1500 "TumblrPublishing.c" } -GType publishing_tumblr_size_entry_get_type (void) { +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 }; @@ -1296,18 +1516,22 @@ GType publishing_tumblr_size_entry_get_type (void) { } -gpointer publishing_tumblr_size_entry_ref (gpointer instance) { +gpointer +publishing_tumblr_size_entry_ref (gpointer instance) +{ PublishingTumblrSizeEntry * self; self = instance; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_atomic_int_inc (&self->ref_count); #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return instance; -#line 1307 "TumblrPublishing.c" +#line 1529 "TumblrPublishing.c" } -void publishing_tumblr_size_entry_unref (gpointer instance) { +void +publishing_tumblr_size_entry_unref (gpointer instance) +{ PublishingTumblrSizeEntry * self; self = instance; #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1316,70 +1540,91 @@ void publishing_tumblr_size_entry_unref (gpointer instance) { PUBLISHING_TUMBLR_SIZE_ENTRY_GET_CLASS (self)->finalize (self); #line 76 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_type_free_instance ((GTypeInstance *) self); -#line 1320 "TumblrPublishing.c" +#line 1544 "TumblrPublishing.c" } } -static void _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, gpointer self) { +static void +_publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated (SpitPublishingAuthenticator* _sender, + gpointer self) +{ #line 135 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_authenticator_authenticated ((PublishingTumblrTumblrPublisher*) self); -#line 1328 "TumblrPublishing.c" +#line 1555 "TumblrPublishing.c" } -static void _vala_array_add31 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +static void +_vala_array_add31 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value) +{ #line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if ((*length) == (*size)) { #line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *size = (*size) ? (2 * (*size)) : 4; #line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1339 "TumblrPublishing.c" +#line 1571 "TumblrPublishing.c" } #line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[(*length)++] = value; #line 103 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[*length] = NULL; -#line 1345 "TumblrPublishing.c" +#line 1577 "TumblrPublishing.c" } -static void _vala_array_add32 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +static void +_vala_array_add32 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value) +{ #line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if ((*length) == (*size)) { #line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *size = (*size) ? (2 * (*size)) : 4; #line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1356 "TumblrPublishing.c" +#line 1593 "TumblrPublishing.c" } #line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[(*length)++] = value; #line 104 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[*length] = NULL; -#line 1362 "TumblrPublishing.c" +#line 1599 "TumblrPublishing.c" } -static void _vala_array_add33 (PublishingTumblrSizeEntry** * array, int* length, int* size, PublishingTumblrSizeEntry* value) { +static void +_vala_array_add33 (PublishingTumblrSizeEntry** * array, + int* length, + int* size, + PublishingTumblrSizeEntry* value) +{ #line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if ((*length) == (*size)) { #line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *size = (*size) ? (2 * (*size)) : 4; #line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *array = g_renew (PublishingTumblrSizeEntry*, *array, (*size) + 1); -#line 1373 "TumblrPublishing.c" +#line 1615 "TumblrPublishing.c" } #line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[(*length)++] = value; #line 105 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[*length] = NULL; -#line 1379 "TumblrPublishing.c" +#line 1621 "TumblrPublishing.c" } -static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, int* result_length1) { +static PublishingTumblrSizeEntry** +publishing_tumblr_tumblr_publisher_create_sizes (PublishingTumblrTumblrPublisher* self, + int* result_length1) +{ PublishingTumblrSizeEntry** result = NULL; PublishingTumblrSizeEntry** _result_ = NULL; PublishingTumblrSizeEntry** _tmp0_; @@ -1438,17 +1683,20 @@ static PublishingTumblrSizeEntry** publishing_tumblr_tumblr_publisher_create_siz if (result_length1) { #line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *result_length1 = _tmp7__length1; -#line 1442 "TumblrPublishing.c" +#line 1687 "TumblrPublishing.c" } #line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result = _tmp7_; #line 111 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1448 "TumblrPublishing.c" +#line 1693 "TumblrPublishing.c" } -static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, int* result_length1) { +static PublishingTumblrBlogEntry** +publishing_tumblr_tumblr_publisher_create_blogs (PublishingTumblrTumblrPublisher* self, + int* result_length1) +{ PublishingTumblrBlogEntry** result = NULL; PublishingTumblrBlogEntry** _result_ = NULL; PublishingTumblrBlogEntry** _tmp0_; @@ -1474,32 +1722,33 @@ static PublishingTumblrBlogEntry** publishing_tumblr_tumblr_publisher_create_blo if (result_length1) { #line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *result_length1 = _tmp1__length1; -#line 1478 "TumblrPublishing.c" +#line 1726 "TumblrPublishing.c" } #line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result = _tmp1_; #line 118 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1484 "TumblrPublishing.c" +#line 1732 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (GType object_type, SpitPublishingService* service, SpitPublishingPluginHost* host) { +PublishingTumblrTumblrPublisher* +publishing_tumblr_tumblr_publisher_construct (GType object_type, + SpitPublishingService* service, + SpitPublishingPluginHost* host) +{ PublishingTumblrTumblrPublisher * self = NULL; SpitPublishingService* _tmp0_; - SpitPublishingService* _tmp1_; - SpitPublishingPluginHost* _tmp2_; - SpitPublishingPluginHost* _tmp3_; - PublishingRESTSupportOAuth1Session* _tmp4_; + SpitPublishingPluginHost* _tmp1_; + PublishingRESTSupportOAuth1Session* _tmp2_; + gint _tmp3_; + PublishingTumblrSizeEntry** _tmp4_; gint _tmp5_; - PublishingTumblrSizeEntry** _tmp6_; - gint _tmp7_; - PublishingTumblrBlogEntry** _tmp8_; - PublishingAuthenticatorFactory* _tmp9_; - PublishingAuthenticatorFactory* _tmp10_; - SpitPublishingPluginHost* _tmp11_; - SpitPublishingAuthenticator* _tmp12_; - SpitPublishingAuthenticator* _tmp13_; + PublishingTumblrBlogEntry** _tmp6_; + PublishingAuthenticatorFactory* _tmp7_; + PublishingAuthenticatorFactory* _tmp8_; + SpitPublishingAuthenticator* _tmp9_; + SpitPublishingAuthenticator* _tmp10_; #line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (SPIT_PUBLISHING_IS_SERVICE (service), NULL); #line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1509,79 +1758,78 @@ PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_construct (G #line 123 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:123: TumblrPublisher instantiated."); #line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = service; -#line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = _g_object_ref0 (_tmp0_); + _tmp0_ = _g_object_ref0 (service); #line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->service); #line 124 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->service = _tmp1_; -#line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = host; + self->priv->service = _tmp0_; #line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = _g_object_ref0 (_tmp2_); + _tmp1_ = _g_object_ref0 (host); #line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->host); #line 125 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->host = _tmp3_; + self->priv->host = _tmp1_; #line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = publishing_rest_support_oauth1_session_new (PUBLISHING_TUMBLR_ENDPOINT_URL); + _tmp2_ = publishing_rest_support_oauth1_session_new (PUBLISHING_TUMBLR_ENDPOINT_URL); #line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishing_rest_support_session_unref0 (self->priv->session); #line 126 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->session = _tmp4_; + self->priv->session = _tmp2_; #line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = publishing_tumblr_tumblr_publisher_create_sizes (self, &_tmp5_); + _tmp4_ = publishing_tumblr_tumblr_publisher_create_sizes (self, &_tmp3_); #line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); #line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = _tmp6_; + self->priv->sizes = _tmp4_; #line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = _tmp5_; + self->priv->sizes_length1 = _tmp3_; #line 127 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->_sizes_size_ = self->priv->sizes_length1; #line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = publishing_tumblr_tumblr_publisher_create_blogs (self, &_tmp7_); + _tmp6_ = publishing_tumblr_tumblr_publisher_create_blogs (self, &_tmp5_); #line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); #line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = _tmp8_; + self->priv->blogs = _tmp6_; #line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = _tmp7_; + self->priv->blogs_length1 = _tmp5_; #line 128 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->_blogs_size_ = self->priv->blogs_length1; #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = publishing_authenticator_factory_get_instance (); -#line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = _tmp9_; + _tmp7_ = publishing_authenticator_factory_get_instance (); #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = host; + _tmp8_ = _tmp7_; #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp10_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "tumblr", _tmp11_); + _tmp9_ = spit_publishing_authenticator_factory_create (G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, SPIT_PUBLISHING_TYPE_AUTHENTICATOR_FACTORY, SpitPublishingAuthenticatorFactory), "tumblr", host); #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->authenticator); #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->authenticator = _tmp12_; + self->priv->authenticator = _tmp9_; #line 130 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_object_unref0 (_tmp10_); + _g_object_unref0 (_tmp8_); #line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = self->priv->authenticator; + _tmp10_ = self->priv->authenticator; #line 131 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp13_, "authenticated", (GCallback) _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); + g_signal_connect_object (_tmp10_, "authenticated", (GCallback) _publishing_tumblr_tumblr_publisher_on_authenticator_authenticated_spit_publishing_authenticator_authenticated, self, 0); #line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 1574 "TumblrPublishing.c" +#line 1817 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisher* publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, SpitPublishingPluginHost* host) { +PublishingTumblrTumblrPublisher* +publishing_tumblr_tumblr_publisher_new (SpitPublishingService* service, + SpitPublishingPluginHost* host) +{ #line 121 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_tumblr_publisher_construct (PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, service, host); -#line 1581 "TumblrPublishing.c" +#line 1827 "TumblrPublishing.c" } -static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base) { +static SpitPublishingService* +publishing_tumblr_tumblr_publisher_real_get_service (SpitPublishingPublisher* base) +{ PublishingTumblrTumblrPublisher * self; SpitPublishingService* result = NULL; SpitPublishingService* _tmp0_; @@ -1596,11 +1844,13 @@ static SpitPublishingService* publishing_tumblr_tumblr_publisher_real_get_servic result = _tmp1_; #line 141 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1600 "TumblrPublishing.c" +#line 1848 "TumblrPublishing.c" } -SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self) { +SpitPublishingPluginHost* +publishing_tumblr_tumblr_publisher_get_host (PublishingTumblrTumblrPublisher* self) +{ SpitPublishingPluginHost* result = NULL; SpitPublishingPluginHost* _tmp0_; SpitPublishingPluginHost* _tmp1_; @@ -1614,11 +1864,13 @@ SpitPublishingPluginHost* publishing_tumblr_tumblr_publisher_get_host (Publishin result = _tmp1_; #line 145 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1618 "TumblrPublishing.c" +#line 1868 "TumblrPublishing.c" } -static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base) { +static gboolean +publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishingPublisher* base) +{ PublishingTumblrTumblrPublisher * self; gboolean result = FALSE; gboolean _tmp0_; @@ -1630,133 +1882,132 @@ static gboolean publishing_tumblr_tumblr_publisher_real_is_running (SpitPublishi result = _tmp0_; #line 149 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1634 "TumblrPublishing.c" +#line 1886 "TumblrPublishing.c" } -gint publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) { +gint +publishing_tumblr_tumblr_publisher_get_persistent_default_size (PublishingTumblrTumblrPublisher* self) +{ gint result = 0; SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; #line 152 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); #line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->host; #line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); -#line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; + result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", 1); #line 153 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1652 "TumblrPublishing.c" +#line 1903 "TumblrPublishing.c" } -void publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, gint size) { +void +publishing_tumblr_tumblr_publisher_set_persistent_default_size (PublishingTumblrTumblrPublisher* self, + gint size) +{ SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; #line 156 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->host; #line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = size; -#line 157 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", _tmp1_); -#line 1667 "TumblrPublishing.c" + spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_size", size); +#line 1918 "TumblrPublishing.c" } -gint publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self) { +gint +publishing_tumblr_tumblr_publisher_get_persistent_default_blog (PublishingTumblrTumblrPublisher* self) +{ gint result = 0; SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; #line 160 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self), 0); #line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->host; #line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", 0); -#line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp1_; + result = spit_host_interface_get_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", 0); #line 161 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 1685 "TumblrPublishing.c" +#line 1935 "TumblrPublishing.c" } -void publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, gint blog) { +void +publishing_tumblr_tumblr_publisher_set_persistent_default_blog (PublishingTumblrTumblrPublisher* self, + gint blog) +{ SpitPublishingPluginHost* _tmp0_; - gint _tmp1_; #line 164 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->host; #line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = blog; -#line 165 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", _tmp1_); -#line 1700 "TumblrPublishing.c" + spit_host_interface_set_config_int (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, SPIT_TYPE_HOST_INTERFACE, SpitHostInterface), "default_blog", blog); +#line 1950 "TumblrPublishing.c" } -static gpointer _g_variant_ref0 (gpointer self) { +static gpointer +_g_variant_ref0 (gpointer self) +{ #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self ? g_variant_ref (self) : NULL; -#line 1707 "TumblrPublishing.c" +#line 1959 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self) { - gboolean _tmp0_; +static void +publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (PublishingTumblrTumblrPublisher* self) +{ GHashTable* params = NULL; - SpitPublishingAuthenticator* _tmp1_; - GHashTable* _tmp2_; + SpitPublishingAuthenticator* _tmp0_; + GHashTable* _tmp1_; GVariant* consumer_key = NULL; GVariant* consumer_secret = NULL; GVariant* auth_token = NULL; GVariant* auth_token_secret = NULL; - GHashTable* _tmp3_; - gconstpointer _tmp4_ = NULL; - GVariant* _tmp5_; - GHashTable* _tmp6_; - gconstpointer _tmp7_ = NULL; - GVariant* _tmp8_; - PublishingRESTSupportOAuth1Session* _tmp9_; - GVariant* _tmp10_; - const gchar* _tmp11_; - GVariant* _tmp12_; - const gchar* _tmp13_; - GHashTable* _tmp14_; - gconstpointer _tmp15_ = NULL; - GVariant* _tmp16_; - GHashTable* _tmp17_; - gconstpointer _tmp18_ = NULL; - GVariant* _tmp19_; - PublishingRESTSupportOAuth1Session* _tmp20_; - GVariant* _tmp21_; - const gchar* _tmp22_; - GVariant* _tmp23_; - const gchar* _tmp24_; + GHashTable* _tmp2_; + gconstpointer _tmp3_ = NULL; + GVariant* _tmp4_; + GHashTable* _tmp5_; + gconstpointer _tmp6_ = NULL; + GVariant* _tmp7_; + PublishingRESTSupportOAuth1Session* _tmp8_; + GVariant* _tmp9_; + const gchar* _tmp10_; + GVariant* _tmp11_; + const gchar* _tmp12_; + GHashTable* _tmp13_; + gconstpointer _tmp14_ = NULL; + GVariant* _tmp15_; + GHashTable* _tmp16_; + gconstpointer _tmp17_ = NULL; + GVariant* _tmp18_; + PublishingRESTSupportOAuth1Session* _tmp19_; + GVariant* _tmp20_; + const gchar* _tmp21_; + GVariant* _tmp22_; + const gchar* _tmp23_; #line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 171 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp0_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 172 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 1750 "TumblrPublishing.c" +#line 2001 "TumblrPublishing.c" } #line 174 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:174: EVENT: a fully authenticated session has be" \ "come available"); #line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->authenticator; + _tmp0_ = self->priv->authenticator; #line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = spit_publishing_authenticator_get_authentication_parameter (_tmp1_); + _tmp1_ = spit_publishing_authenticator_get_authentication_parameter (_tmp0_); #line 176 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - params = _tmp2_; + params = _tmp1_; #line 177 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" consumer_key = NULL; #line 178 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1766,69 +2017,69 @@ static void publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (P #line 180 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" auth_token_secret = NULL; #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = params; + _tmp2_ = params; #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp3_, "ConsumerKey", NULL, &_tmp4_); + g_hash_table_lookup_extended (_tmp2_, "ConsumerKey", NULL, &_tmp3_); #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_variant_unref0 (consumer_key); #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _g_variant_ref0 (_tmp4_); + _tmp4_ = _g_variant_ref0 (_tmp3_); #line 182 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_key = _tmp5_; + consumer_key = _tmp4_; #line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = params; + _tmp5_ = params; #line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp6_, "ConsumerSecret", NULL, &_tmp7_); + g_hash_table_lookup_extended (_tmp5_, "ConsumerSecret", NULL, &_tmp6_); #line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_variant_unref0 (consumer_secret); #line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = _g_variant_ref0 (_tmp7_); + _tmp7_ = _g_variant_ref0 (_tmp6_); #line 183 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - consumer_secret = _tmp8_; + consumer_secret = _tmp7_; #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = self->priv->session; + _tmp8_ = self->priv->session; #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = consumer_key; + _tmp9_ = consumer_key; #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = g_variant_get_string (_tmp10_, NULL); + _tmp10_ = g_variant_get_string (_tmp9_, NULL); #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = consumer_secret; + _tmp11_ = consumer_secret; #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = g_variant_get_string (_tmp12_, NULL); + _tmp12_ = g_variant_get_string (_tmp11_, NULL); #line 184 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_set_api_credentials (_tmp9_, _tmp11_, _tmp13_); + publishing_rest_support_oauth1_session_set_api_credentials (_tmp8_, _tmp10_, _tmp12_); #line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = params; + _tmp13_ = params; #line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp14_, "AuthToken", NULL, &_tmp15_); + g_hash_table_lookup_extended (_tmp13_, "AuthToken", NULL, &_tmp14_); #line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_variant_unref0 (auth_token); #line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = _g_variant_ref0 (_tmp15_); + _tmp15_ = _g_variant_ref0 (_tmp14_); #line 186 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token = _tmp16_; + auth_token = _tmp15_; #line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = params; + _tmp16_ = params; #line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_hash_table_lookup_extended (_tmp17_, "AuthTokenSecret", NULL, &_tmp18_); + g_hash_table_lookup_extended (_tmp16_, "AuthTokenSecret", NULL, &_tmp17_); #line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_variant_unref0 (auth_token_secret); #line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _g_variant_ref0 (_tmp18_); + _tmp18_ = _g_variant_ref0 (_tmp17_); #line 187 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - auth_token_secret = _tmp19_; + auth_token_secret = _tmp18_; #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = self->priv->session; + _tmp19_ = self->priv->session; #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = auth_token; + _tmp20_ = auth_token; #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = g_variant_get_string (_tmp21_, NULL); + _tmp21_ = g_variant_get_string (_tmp20_, NULL); #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = auth_token_secret; + _tmp22_ = auth_token_secret; #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = g_variant_get_string (_tmp23_, NULL); + _tmp23_ = g_variant_get_string (_tmp22_, NULL); #line 188 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp20_, _tmp22_, _tmp24_, ""); + publishing_rest_support_oauth1_session_set_access_phase_credentials (_tmp19_, _tmp21_, _tmp23_, ""); #line 192 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_do_get_blogs (self); #line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1841,25 +2092,34 @@ static void publishing_tumblr_tumblr_publisher_on_authenticator_authenticated (P _g_variant_unref0 (consumer_key); #line 170 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_hash_table_unref0 (params); -#line 1844 "TumblrPublishing.c" +#line 2095 "TumblrPublishing.c" } -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_completed_publishing_rest_support_transaction_completed (PublishingRESTSupportTransaction* _sender, + gpointer self) +{ #line 198 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_info_request_txn_completed ((PublishingTumblrTumblrPublisher*) self, _sender); -#line 1851 "TumblrPublishing.c" +#line 2105 "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) { +static void +_publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error (PublishingRESTSupportTransaction* _sender, + GError* err, + gpointer self) +{ #line 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_info_request_txn_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); -#line 1858 "TumblrPublishing.c" +#line 2116 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTumblrPublisher* self) +{ PublishingTumblrTumblrPublisherUserInfoFetchTransaction* txn = NULL; PublishingRESTSupportOAuth1Session* _tmp0_; PublishingTumblrTumblrPublisherUserInfoFetchTransaction* _tmp1_; @@ -1878,7 +2138,7 @@ static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTum 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 199 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 1881 "TumblrPublishing.c" +#line 2141 "TumblrPublishing.c" { #line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_rest_support_transaction_execute (G_TYPE_CHECK_INSTANCE_CAST (txn, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), &_inner_error_); @@ -1886,7 +2146,7 @@ static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTum if (G_UNLIKELY (_inner_error_ != NULL)) { #line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_inner_error_->domain == SPIT_PUBLISHING_PUBLISHING_ERROR) { -#line 1889 "TumblrPublishing.c" +#line 2149 "TumblrPublishing.c" goto __catch20_spit_publishing_publishing_error; } #line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1897,7 +2157,7 @@ static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTum g_clear_error (&_inner_error_); #line 202 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 1900 "TumblrPublishing.c" +#line 2160 "TumblrPublishing.c" } } goto __finally20; @@ -1918,7 +2178,7 @@ static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTum spit_publishing_plugin_host_post_error (_tmp2_, _tmp3_); #line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_error_free0 (err); -#line 1921 "TumblrPublishing.c" +#line 2181 "TumblrPublishing.c" } __finally20: #line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -1931,470 +2191,451 @@ static void publishing_tumblr_tumblr_publisher_do_get_blogs (PublishingTumblrTum g_clear_error (&_inner_error_); #line 201 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 1934 "TumblrPublishing.c" +#line 2194 "TumblrPublishing.c" } #line 195 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishing_rest_support_transaction_unref0 (txn); -#line 1938 "TumblrPublishing.c" +#line 2198 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn) { - PublishingRESTSupportTransaction* _tmp0_; +static void +publishing_tumblr_tumblr_publisher_on_info_request_txn_completed (PublishingTumblrTumblrPublisher* self, + PublishingRESTSupportTransaction* txn) +{ + guint _tmp0_; guint _tmp1_; - PublishingRESTSupportTransaction* _tmp2_; - guint _tmp3_; - gboolean _tmp4_; - PublishingRESTSupportTransaction* _tmp5_; - gchar* _tmp6_; - gchar* _tmp7_; - PublishingRESTSupportTransaction* _tmp8_; - gchar* _tmp9_; - gchar* _tmp10_; + gchar* _tmp2_; + gchar* _tmp3_; + gchar* _tmp4_; + gchar* _tmp5_; #line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 211 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); #line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = txn; + g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); #line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 212 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = txn; + g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self); #line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE); + g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); #line 213 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self); #line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 215 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp4_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 216 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 1976 "TumblrPublishing.c" +#line 2228 "TumblrPublishing.c" } #line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = txn; -#line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = publishing_rest_support_transaction_get_response (_tmp5_); + _tmp2_ = publishing_rest_support_transaction_get_response (txn); #line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = _tmp6_; + _tmp3_ = _tmp2_; #line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:218: EVENT: user info request transaction comple" \ -"ted; response = '%s'", _tmp7_); +"ted; response = '%s'", _tmp3_); #line 218 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp7_); + _g_free0 (_tmp3_); #line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = txn; + _tmp4_ = publishing_rest_support_transaction_get_response (txn); #line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = publishing_rest_support_transaction_get_response (_tmp8_); -#line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = _tmp9_; + _tmp5_ = _tmp4_; #line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (self, _tmp10_); + publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (self, _tmp5_); #line 220 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp10_); + _g_free0 (_tmp5_); #line 221 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (self); -#line 2000 "TumblrPublishing.c" +#line 2248 "TumblrPublishing.c" } -static gpointer _json_object_ref0 (gpointer self) { +static gpointer +_json_object_ref0 (gpointer self) +{ #line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self ? json_object_ref (self) : NULL; -#line 2007 "TumblrPublishing.c" +#line 2257 "TumblrPublishing.c" } -static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) { +static gchar* +string_replace (const gchar* self, + const gchar* old, + const gchar* replacement) +{ gchar* result = NULL; gboolean _tmp0_ = FALSE; gboolean _tmp1_ = FALSE; GError * _inner_error_ = NULL; -#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_return_val_if_fail (old != NULL, NULL); -#line 1407 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1421 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_return_val_if_fail (replacement != NULL, NULL); -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if ((*((gchar*) self)) == '\0') { -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp1_ = TRUE; -#line 2026 "TumblrPublishing.c" +#line 2280 "TumblrPublishing.c" } else { - const gchar* _tmp2_; -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp2_ = old; -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp1_ = (*((gchar*) _tmp2_)) == '\0'; -#line 2033 "TumblrPublishing.c" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp1_ = (*((gchar*) old)) == '\0'; +#line 2284 "TumblrPublishing.c" } -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (_tmp1_) { -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp0_ = TRUE; -#line 2039 "TumblrPublishing.c" +#line 2290 "TumblrPublishing.c" } else { - const gchar* _tmp3_; - const gchar* _tmp4_; -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp3_ = old; -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp4_ = replacement; -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0; -#line 2049 "TumblrPublishing.c" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp0_ = g_strcmp0 (old, replacement) == 0; +#line 2294 "TumblrPublishing.c" } -#line 1408 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1422 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (_tmp0_) { -#line 2053 "TumblrPublishing.c" - gchar* _tmp5_; -#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp5_ = g_strdup (self); -#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - result = _tmp5_; -#line 1409 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 2298 "TumblrPublishing.c" + gchar* _tmp2_; +#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp2_ = g_strdup (self); +#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + result = _tmp2_; +#line 1423 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 2061 "TumblrPublishing.c" +#line 2306 "TumblrPublishing.c" } { GRegex* regex = NULL; - const gchar* _tmp6_; - gchar* _tmp7_; - gchar* _tmp8_; - GRegex* _tmp9_; - GRegex* _tmp10_; - gchar* _tmp11_ = NULL; - GRegex* _tmp12_; - const gchar* _tmp13_; - gchar* _tmp14_; - gchar* _tmp15_; -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp6_ = old; -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp7_ = g_regex_escape_string (_tmp6_, -1); -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp8_ = _tmp7_; -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_); -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp10_ = _tmp9_; -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _g_free0 (_tmp8_); -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - regex = _tmp10_; -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + gchar* _tmp3_; + gchar* _tmp4_; + GRegex* _tmp5_; + GRegex* _tmp6_; + gchar* _tmp7_ = NULL; + GRegex* _tmp8_; + gchar* _tmp9_; + gchar* _tmp10_; +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp3_ = g_regex_escape_string (old, -1); +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp4_ = _tmp3_; +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp5_ = g_regex_new (_tmp4_, 0, 0, &_inner_error_); +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp6_ = _tmp5_; +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _g_free0 (_tmp4_); +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + regex = _tmp6_; +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2093 "TumblrPublishing.c" +#line 2334 "TumblrPublishing.c" goto __catch22_g_regex_error; } -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1426 "/usr/share/vala-0.40/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 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1412 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1426 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return NULL; -#line 2102 "TumblrPublishing.c" +#line 2343 "TumblrPublishing.c" } -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp12_ = regex; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp13_ = replacement; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp11_ = _tmp14_; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp8_ = regex; +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp9_ = g_regex_replace_literal (_tmp8_, self, (gssize) -1, 0, replacement, 0, &_inner_error_); +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp7_ = _tmp9_; +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (_inner_error_->domain == G_REGEX_ERROR) { -#line 2118 "TumblrPublishing.c" +#line 2357 "TumblrPublishing.c" goto __catch22_g_regex_error; } -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/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 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return NULL; -#line 2129 "TumblrPublishing.c" +#line 2368 "TumblrPublishing.c" } -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp15_ = _tmp11_; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp11_ = NULL; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - result = _tmp15_; -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _g_free0 (_tmp11_); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp10_ = _tmp7_; +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp7_ = NULL; +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + result = _tmp10_; +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _g_free0 (_tmp7_); +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _g_regex_unref0 (regex); -#line 1413 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1427 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 2143 "TumblrPublishing.c" +#line 2382 "TumblrPublishing.c" } goto __finally22; __catch22_g_regex_error: { GError* e = NULL; -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" e = _inner_error_; -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _inner_error_ = NULL; -#line 1415 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1429 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_assert_not_reached (); -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _g_error_free0 (e); -#line 2157 "TumblrPublishing.c" +#line 2396 "TumblrPublishing.c" } __finally22: -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/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 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_clear_error (&_inner_error_); -#line 1411 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1425 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return NULL; -#line 2168 "TumblrPublishing.c" +#line 2407 "TumblrPublishing.c" } } -static void _vala_array_add34 (PublishingTumblrBlogEntry** * array, int* length, int* size, PublishingTumblrBlogEntry* value) { +static void +_vala_array_add34 (PublishingTumblrBlogEntry** * array, + int* length, + int* size, + PublishingTumblrBlogEntry* value) +{ #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if ((*length) == (*size)) { #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *size = (*size) ? (2 * (*size)) : 4; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" *array = g_renew (PublishingTumblrBlogEntry*, *array, (*size) + 1); -#line 2180 "TumblrPublishing.c" +#line 2424 "TumblrPublishing.c" } #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[(*length)++] = value; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" (*array)[*length] = NULL; -#line 2186 "TumblrPublishing.c" +#line 2430 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, const gchar* response) { - const gchar* _tmp0_; +static void +publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_request (PublishingTumblrTumblrPublisher* self, + const gchar* response) +{ GError * _inner_error_ = NULL; #line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 225 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (response != NULL); -#line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = response; #line 226 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:226: ACTION: parsing info request response '%s' " \ -"into list of available blogs", _tmp0_); -#line 2201 "TumblrPublishing.c" +"into list of available blogs", response); +#line 2445 "TumblrPublishing.c" { JsonParser* parser = NULL; - JsonParser* _tmp1_; - const gchar* _tmp2_; + JsonParser* _tmp0_; JsonObject* root_object = NULL; - JsonNode* _tmp3_; + JsonNode* _tmp1_; + JsonObject* _tmp2_; + JsonObject* _tmp3_; JsonObject* _tmp4_; JsonObject* _tmp5_; JsonObject* _tmp6_; - JsonObject* _tmp7_; - JsonObject* _tmp8_; + const gchar* _tmp7_; + gchar* _tmp8_; const gchar* _tmp9_; - gchar* _tmp10_; - const gchar* _tmp11_; + JsonObject* _tmp10_; + JsonObject* _tmp11_; JsonObject* _tmp12_; - JsonObject* _tmp13_; - JsonObject* _tmp14_; - JsonArray* _tmp15_; - GList* _tmp16_; + JsonArray* _tmp13_; + GList* _tmp14_; #line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = json_parser_new (); + _tmp0_ = json_parser_new (); #line 228 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - parser = _tmp1_; + parser = _tmp0_; #line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = response; -#line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - json_parser_load_from_data (parser, _tmp2_, (gssize) -1, &_inner_error_); + json_parser_load_from_data (parser, response, (gssize) -1, &_inner_error_); #line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { #line 229 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (parser); -#line 2233 "TumblrPublishing.c" +#line 2474 "TumblrPublishing.c" goto __catch21_g_error; } #line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = json_parser_get_root (parser); + _tmp1_ = json_parser_get_root (parser); #line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = json_node_get_object (_tmp3_); + _tmp2_ = json_node_get_object (_tmp1_); #line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _json_object_ref0 (_tmp4_); + _tmp3_ = _json_object_ref0 (_tmp2_); #line 230 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - root_object = _tmp5_; + root_object = _tmp3_; #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = root_object; + _tmp4_ = root_object; #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = json_object_get_object_member (_tmp6_, "response"); + _tmp5_ = json_object_get_object_member (_tmp4_, "response"); #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = json_object_get_object_member (_tmp7_, "user"); + _tmp6_ = json_object_get_object_member (_tmp5_, "user"); #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = json_object_get_string_member (_tmp8_, "name"); + _tmp7_ = json_object_get_string_member (_tmp6_, "name"); #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = g_strdup (_tmp9_); + _tmp8_ = g_strdup (_tmp7_); #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->priv->username); #line 231 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp10_; + self->priv->username = _tmp8_; #line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = self->priv->username; + _tmp9_ = self->priv->username; #line 232 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:232: Got user name: %s", _tmp11_); + g_debug ("TumblrPublishing.vala:232: Got user name: %s", _tmp9_); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = root_object; + _tmp10_ = root_object; #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = json_object_get_object_member (_tmp12_, "response"); + _tmp11_ = json_object_get_object_member (_tmp10_, "response"); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = json_object_get_object_member (_tmp13_, "user"); + _tmp12_ = json_object_get_object_member (_tmp11_, "user"); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = json_object_get_array_member (_tmp14_, "blogs"); + _tmp13_ = json_object_get_array_member (_tmp12_, "blogs"); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = json_array_get_elements (_tmp15_); -#line 2272 "TumblrPublishing.c" + _tmp14_ = json_array_get_elements (_tmp13_); +#line 2513 "TumblrPublishing.c" { GList* blognode_collection = NULL; GList* blognode_it = NULL; #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blognode_collection = _tmp16_; + blognode_collection = _tmp14_; #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (blognode_it = blognode_collection; blognode_it != NULL; blognode_it = blognode_it->next) { -#line 2280 "TumblrPublishing.c" +#line 2521 "TumblrPublishing.c" JsonNode* blognode = NULL; #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" blognode = (JsonNode*) blognode_it->data; -#line 2284 "TumblrPublishing.c" +#line 2525 "TumblrPublishing.c" { JsonObject* blog = NULL; - JsonNode* _tmp17_; - JsonObject* _tmp18_; - JsonObject* _tmp19_; + JsonNode* _tmp15_; + JsonObject* _tmp16_; + JsonObject* _tmp17_; gchar* name = NULL; - JsonObject* _tmp20_; - const gchar* _tmp21_; - gchar* _tmp22_; + JsonObject* _tmp18_; + const gchar* _tmp19_; + gchar* _tmp20_; gchar* url = NULL; - JsonObject* _tmp23_; - const gchar* _tmp24_; + JsonObject* _tmp21_; + const gchar* _tmp22_; + gchar* _tmp23_; + gchar* _tmp24_; gchar* _tmp25_; gchar* _tmp26_; - gchar* _tmp27_; - gchar* _tmp28_; - const gchar* _tmp29_; + const gchar* _tmp27_; + const gchar* _tmp28_; + PublishingTumblrBlogEntry** _tmp29_; + gint _tmp29__length1; const gchar* _tmp30_; - PublishingTumblrBlogEntry** _tmp31_; - gint _tmp31__length1; - const gchar* _tmp32_; - const gchar* _tmp33_; - PublishingTumblrBlogEntry* _tmp34_; + const gchar* _tmp31_; + PublishingTumblrBlogEntry* _tmp32_; #line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = blognode; + _tmp15_ = blognode; #line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = json_node_get_object (_tmp17_); + _tmp16_ = json_node_get_object (_tmp15_); #line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = _json_object_ref0 (_tmp18_); + _tmp17_ = _json_object_ref0 (_tmp16_); #line 234 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog = _tmp19_; + blog = _tmp17_; #line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = blog; + _tmp18_ = blog; #line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = json_object_get_string_member (_tmp20_, "name"); + _tmp19_ = json_object_get_string_member (_tmp18_, "name"); #line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = g_strdup (_tmp21_); + _tmp20_ = g_strdup (_tmp19_); #line 235 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - name = _tmp22_; + name = _tmp20_; #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = blog; + _tmp21_ = blog; #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = json_object_get_string_member (_tmp23_, "url"); + _tmp22_ = json_object_get_string_member (_tmp21_, "url"); #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = string_replace (_tmp24_, "http://", ""); + _tmp23_ = string_replace (_tmp22_, "http://", ""); #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = _tmp25_; + _tmp24_ = _tmp23_; #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = string_replace (_tmp26_, "/", ""); + _tmp25_ = string_replace (_tmp24_, "/", ""); #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = _tmp27_; + _tmp26_ = _tmp25_; #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp26_); + _g_free0 (_tmp24_); #line 236 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - url = _tmp28_; + url = _tmp26_; #line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = name; + _tmp27_ = name; #line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = url; + _tmp28_ = url; #line 237 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_debug ("TumblrPublishing.vala:237: Got blog name: %s and url: %s", _tmp29_, _tmp30_); + g_debug ("TumblrPublishing.vala:237: Got blog name: %s and url: %s", _tmp27_, _tmp28_); #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = self->priv->blogs; + _tmp29_ = self->priv->blogs; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31__length1 = self->priv->blogs_length1; + _tmp29__length1 = self->priv->blogs_length1; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = name; + _tmp30_ = name; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = url; + _tmp31_ = url; #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = publishing_tumblr_blog_entry_new (_tmp32_, _tmp33_); + _tmp32_ = publishing_tumblr_blog_entry_new (_tmp30_, _tmp31_); #line 238 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_array_add34 (&self->priv->blogs, &self->priv->blogs_length1, &self->priv->_blogs_size_, _tmp34_); + _vala_array_add34 (&self->priv->blogs, &self->priv->blogs_length1, &self->priv->_blogs_size_, _tmp32_); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (url); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (name); #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _json_object_unref0 (blog); -#line 2364 "TumblrPublishing.c" +#line 2605 "TumblrPublishing.c" } } #line 233 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_list_free0 (blognode_collection); -#line 2369 "TumblrPublishing.c" +#line 2610 "TumblrPublishing.c" } #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _json_object_unref0 (root_object); #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (parser); -#line 2375 "TumblrPublishing.c" +#line 2616 "TumblrPublishing.c" } goto __finally21; __catch21_g_error: { GError* err = NULL; - SpitPublishingPluginHost* _tmp35_; - GError* _tmp36_; + SpitPublishingPluginHost* _tmp33_; + GError* _tmp34_; #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" err = _inner_error_; #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _inner_error_ = NULL; #line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp35_ = self->priv->host; + _tmp33_ = self->priv->host; #line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp36_ = err; + _tmp34_ = err; #line 241 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp35_, _tmp36_); + spit_publishing_plugin_host_post_error (_tmp33_, _tmp34_); #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_error_free0 (err); -#line 2395 "TumblrPublishing.c" +#line 2636 "TumblrPublishing.c" } __finally21: #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2405,87 +2646,86 @@ static void publishing_tumblr_tumblr_publisher_do_parse_token_info_from_user_req g_clear_error (&_inner_error_); #line 227 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2406 "TumblrPublishing.c" +#line 2647 "TumblrPublishing.c" } } -static void publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportTransaction* txn, GError* err) { - PublishingRESTSupportTransaction* _tmp0_; +static void +publishing_tumblr_tumblr_publisher_on_info_request_txn_error (PublishingTumblrTumblrPublisher* self, + PublishingRESTSupportTransaction* txn, + GError* err) +{ + guint _tmp0_; guint _tmp1_; - PublishingRESTSupportTransaction* _tmp2_; - guint _tmp3_; - gboolean _tmp4_; - PublishingRESTSupportOAuth1Session* _tmp5_; - SpitPublishingPluginHost* _tmp6_; - GError* _tmp7_; + PublishingRESTSupportOAuth1Session* _tmp2_; + SpitPublishingPluginHost* _tmp3_; #line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 245 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_TRANSACTION (txn)); #line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = txn; + g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp0_, NULL, FALSE); #line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("completed", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); -#line 247 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = txn; + g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_completed_publishing_rest_support_transaction_completed, self); #line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp3_, NULL, FALSE); + g_signal_parse_name ("network-error", PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, &_tmp1_, NULL, FALSE); #line 248 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_handlers_disconnect_matched (txn, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_info_request_txn_error_publishing_rest_support_transaction_network_error, self); #line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 250 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp4_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 251 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2442 "TumblrPublishing.c" +#line 2677 "TumblrPublishing.c" } #line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = self->priv->session; + _tmp2_ = self->priv->session; #line 253 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_oauth1_session_deauthenticate (_tmp5_); + publishing_rest_support_oauth1_session_deauthenticate (_tmp2_); #line 255 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:255: EVENT: user info request transaction caused" \ " a network error"); #line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = self->priv->host; -#line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = err; + _tmp3_ = self->priv->host; #line 256 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp6_, _tmp7_); -#line 2456 "TumblrPublishing.c" + spit_publishing_plugin_host_post_error (_tmp3_, err); +#line 2689 "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) { +static void +_publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, + gpointer self) +{ #line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish ((PublishingTumblrTumblrPublisher*) self); -#line 2463 "TumblrPublishing.c" +#line 2699 "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) { +static void +_publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, + gpointer self) +{ #line 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout ((PublishingTumblrTumblrPublisher*) self); -#line 2470 "TumblrPublishing.c" +#line 2709 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane (PublishingTumblrTumblrPublisher* self) +{ SpitPublishingPluginHost* _tmp0_; PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_options_pane = NULL; SpitPublishingPluginHost* _tmp1_; - SpitPublishingPublisherMediaType _tmp2_; - PublishingTumblrSizeEntry** _tmp3_; + PublishingTumblrSizeEntry** _tmp2_; + gint _tmp2__length1; + PublishingTumblrBlogEntry** _tmp3_; gint _tmp3__length1; - PublishingTumblrBlogEntry** _tmp4_; - gint _tmp4__length1; - const gchar* _tmp5_; - PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp6_; - SpitPublishingPluginHost* _tmp7_; + const gchar* _tmp4_; + PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp5_; + SpitPublishingPluginHost* _tmp6_; #line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 260 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2497,45 +2737,44 @@ static void publishing_tumblr_tumblr_publisher_do_show_publishing_options_pane ( #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1_ = self->priv->host; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = spit_publishing_plugin_host_get_publishable_media_type (_tmp1_); -#line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->sizes; + _tmp2_ = self->priv->sizes; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__length1 = self->priv->sizes_length1; + _tmp2__length1 = self->priv->sizes_length1; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = self->priv->blogs; + _tmp3_ = self->priv->blogs; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4__length1 = self->priv->blogs_length1; + _tmp3__length1 = self->priv->blogs_length1; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = self->priv->username; + _tmp4_ = self->priv->username; #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = publishing_tumblr_tumblr_publisher_publishing_options_pane_new (self, _tmp2_, _tmp3_, _tmp3__length1, _tmp4_, _tmp4__length1, _tmp5_); + _tmp5_ = publishing_tumblr_tumblr_publisher_publishing_options_pane_new (self, spit_publishing_plugin_host_get_publishable_media_type (_tmp1_), _tmp2_, _tmp2__length1, _tmp3_, _tmp3__length1, _tmp4_); #line 262 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_options_pane = _tmp6_; + publishing_options_pane = _tmp5_; #line 264 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 265 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->host; + _tmp6_ = self->priv->host; #line 266 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + spit_publishing_plugin_host_install_dialog_pane (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (publishing_options_pane, SPIT_PUBLISHING_TYPE_DIALOG_PANE, SpitPublishingDialogPane), SPIT_PUBLISHING_PLUGIN_HOST_BUTTON_MODE_CANCEL); #line 259 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (publishing_options_pane); -#line 2522 "TumblrPublishing.c" +#line 2760 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publish (PublishingTumblrTumblrPublisher* self) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; - gboolean _tmp5_; #line 271 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->publishing_options_pane; #line 272 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp0_ != NULL) { -#line 2535 "TumblrPublishing.c" +#line 2774 "TumblrPublishing.c" PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; guint _tmp2_; PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; @@ -2552,35 +2791,34 @@ static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_publis g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); #line 274 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 2552 "TumblrPublishing.c" +#line 2791 "TumblrPublishing.c" } #line 277 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = 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/TumblrPublishing.vala" - if (!_tmp5_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 278 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2560 "TumblrPublishing.c" +#line 2797 "TumblrPublishing.c" } #line 280 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:280: EVENT: user clicked the 'Publish' button in" \ " the publishing options pane"); #line 281 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_do_publish (self); -#line 2566 "TumblrPublishing.c" +#line 2803 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout (PublishingTumblrTumblrPublisher* self) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp0_; - gboolean _tmp5_; #line 284 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->publishing_options_pane; #line 285 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp0_ != NULL) { -#line 2579 "TumblrPublishing.c" +#line 2817 "TumblrPublishing.c" PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp1_; guint _tmp2_; PublishingTumblrTumblrPublisherPublishingOptionsPane* _tmp3_; @@ -2597,140 +2835,147 @@ static void publishing_tumblr_tumblr_publisher_on_publishing_options_pane_logout g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp4_, NULL, FALSE); #line 287 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 2596 "TumblrPublishing.c" +#line 2834 "TumblrPublishing.c" } #line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 290 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp5_) { + if (!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/TumblrPublishing.vala" return; -#line 2604 "TumblrPublishing.c" +#line 2840 "TumblrPublishing.c" } #line 293 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:293: EVENT: user clicked the 'Logout' button in " \ "the publishing options pane"); #line 295 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_do_logout (self); -#line 2610 "TumblrPublishing.c" +#line 2846 "TumblrPublishing.c" } -gint publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, SpitPublishingPublishable* b) { +gint +publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func (SpitPublishingPublishable* a, + SpitPublishingPublishable* b) +{ gint result = 0; - SpitPublishingPublishable* _tmp0_; + GDateTime* _tmp0_; GDateTime* _tmp1_; GDateTime* _tmp2_; - SpitPublishingPublishable* _tmp3_; - GDateTime* _tmp4_; - GDateTime* _tmp5_; - gint _tmp6_; - gint _tmp7_; + GDateTime* _tmp3_; + gint _tmp4_; #line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (a), 0); #line 298 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (SPIT_PUBLISHING_IS_PUBLISHABLE (b), 0); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = a; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_publishing_publishable_get_exposure_date_time (_tmp0_); + _tmp0_ = spit_publishing_publishable_get_exposure_date_time (a); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _tmp1_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = b; + _tmp1_ = _tmp0_; #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = spit_publishing_publishable_get_exposure_date_time (_tmp3_); + _tmp2_ = spit_publishing_publishable_get_exposure_date_time (b); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _tmp4_; -#line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = g_date_time_compare (_tmp2_, _tmp5_); + _tmp3_ = _tmp2_; #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = _tmp6_; + _tmp4_ = g_date_time_compare (_tmp1_, _tmp3_); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp5_); + _g_date_time_unref0 (_tmp3_); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_date_time_unref0 (_tmp2_); + _g_date_time_unref0 (_tmp1_); #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp7_; + result = _tmp4_; #line 300 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 2652 "TumblrPublishing.c" +#line 2882 "TumblrPublishing.c" } -static gint _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) { +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 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 2661 "TumblrPublishing.c" +#line 2895 "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) { +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 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_upload_complete ((PublishingTumblrTumblrPublisher*) self, _sender, num_photos_published); -#line 2668 "TumblrPublishing.c" +#line 2906 "TumblrPublishing.c" } -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_error_publishing_rest_support_batch_uploader_upload_error (PublishingRESTSupportBatchUploader* _sender, + GError* err, + gpointer self) +{ #line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_upload_error ((PublishingTumblrTumblrPublisher*) self, _sender, err); -#line 2675 "TumblrPublishing.c" +#line 2917 "TumblrPublishing.c" } -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_on_upload_status_updated_spit_publishing_progress_callback (gint file_number, + gdouble fraction_complete, + gpointer self) +{ #line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_on_upload_status_updated ((PublishingTumblrTumblrPublisher*) self, file_number, fraction_complete); -#line 2682 "TumblrPublishing.c" +#line 2928 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumblrPublisher* self) +{ SpitPublishingPluginHost* _tmp0_; SpitPublishingPluginHost* _tmp1_; PublishingTumblrSizeEntry** _tmp2_; gint _tmp2__length1; - gint _tmp3_; - PublishingTumblrSizeEntry* _tmp4_; - gint _tmp5_; - void* _tmp6_; - GDestroyNotify _tmp7_; - SpitPublishingProgressCallback _tmp8_; - gboolean _tmp9_; + PublishingTumblrSizeEntry* _tmp3_; + gint _tmp4_; + void* _tmp5_; + GDestroyNotify _tmp6_; + SpitPublishingProgressCallback _tmp7_; SpitPublishingPublishable** publishables = NULL; - SpitPublishingPluginHost* _tmp10_; - gint _tmp11_; - SpitPublishingPublishable** _tmp12_; + SpitPublishingPluginHost* _tmp8_; + gint _tmp9_; + SpitPublishingPublishable** _tmp10_; gint publishables_length1; gint _publishables_size_; GeeArrayList* sorted_list = NULL; - GeeArrayList* _tmp13_; - SpitPublishingPublishable** _tmp14_; - gint _tmp14__length1; - GeeArrayList* _tmp18_; + GeeArrayList* _tmp11_; + SpitPublishingPublishable** _tmp12_; + gint _tmp12__length1; + GeeArrayList* _tmp16_; gchar* blog_url = NULL; - PublishingTumblrBlogEntry** _tmp19_; - gint _tmp19__length1; - gint _tmp20_; - PublishingTumblrBlogEntry* _tmp21_; - const gchar* _tmp22_; - gchar* _tmp23_; + PublishingTumblrBlogEntry** _tmp17_; + gint _tmp17__length1; + PublishingTumblrBlogEntry* _tmp18_; + const gchar* _tmp19_; + gchar* _tmp20_; PublishingTumblrTumblrPublisherUploader* uploader = NULL; - PublishingRESTSupportOAuth1Session* _tmp24_; - GeeArrayList* _tmp25_; - gint _tmp26_; - gpointer* _tmp27_; - SpitPublishingPublishable** _tmp28_; - gint _tmp28__length1; - const gchar* _tmp29_; + PublishingRESTSupportOAuth1Session* _tmp21_; + GeeArrayList* _tmp22_; + gint _tmp23_; + gpointer* _tmp24_; + SpitPublishingPublishable** _tmp25_; + gint _tmp25__length1; + const gchar* _tmp26_; + PublishingTumblrTumblrPublisherUploader* _tmp27_; + PublishingTumblrTumblrPublisherUploader* _tmp28_; + PublishingTumblrTumblrPublisherUploader* _tmp29_; PublishingTumblrTumblrPublisherUploader* _tmp30_; PublishingTumblrTumblrPublisherUploader* _tmp31_; - PublishingTumblrTumblrPublisherUploader* _tmp32_; - PublishingTumblrTumblrPublisherUploader* _tmp33_; - PublishingTumblrTumblrPublisherUploader* _tmp34_; #line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 304 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2747,13 +2992,11 @@ static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumbl #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp2__length1 = self->priv->sizes_length1; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (self); -#line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _tmp2_[_tmp3_]; + _tmp3_ = _tmp2_[publishing_tumblr_tumblr_publisher_get_persistent_default_size (self)]; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = _tmp4_->size; + _tmp4_ = _tmp3_->size; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp5_, FALSE, &_tmp6_, &_tmp7_); + _tmp7_ = spit_publishing_plugin_host_serialize_publishables (_tmp1_, _tmp4_, FALSE, &_tmp5_, &_tmp6_); #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2763,124 +3006,120 @@ static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumbl #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->progress_reporter_target_destroy_notify = NULL; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter = _tmp8_; + self->priv->progress_reporter = _tmp7_; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target = _tmp6_; + self->priv->progress_reporter_target = _tmp5_; #line 308 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->progress_reporter_target_destroy_notify = _tmp7_; + self->priv->progress_reporter_target_destroy_notify = _tmp6_; #line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 314 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp9_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 315 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2771 "TumblrPublishing.c" +#line 3012 "TumblrPublishing.c" } #line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = self->priv->host; + _tmp8_ = self->priv->host; #line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = spit_publishing_plugin_host_get_publishables (_tmp10_, &_tmp11_); + _tmp10_ = spit_publishing_plugin_host_get_publishables (_tmp8_, &_tmp9_); #line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables = _tmp12_; + publishables = _tmp10_; #line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishables_length1 = _tmp11_; + publishables_length1 = _tmp9_; #line 318 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishables_size_ = publishables_length1; #line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); + _tmp11_ = gee_array_list_new (SPIT_PUBLISHING_TYPE_PUBLISHABLE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL); #line 319 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - sorted_list = _tmp13_; + sorted_list = _tmp11_; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = publishables; + _tmp12_ = publishables; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14__length1 = publishables_length1; -#line 2791 "TumblrPublishing.c" + _tmp12__length1 = publishables_length1; +#line 3032 "TumblrPublishing.c" { SpitPublishingPublishable** p_collection = NULL; gint p_collection_length1 = 0; gint _p_collection_size_ = 0; gint p_it = 0; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p_collection = _tmp14_; + p_collection = _tmp12_; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p_collection_length1 = _tmp14__length1; + p_collection_length1 = _tmp12__length1; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (p_it = 0; p_it < _tmp14__length1; p_it = p_it + 1) { -#line 2803 "TumblrPublishing.c" - SpitPublishingPublishable* _tmp15_; + for (p_it = 0; p_it < _tmp12__length1; p_it = p_it + 1) { +#line 3044 "TumblrPublishing.c" + SpitPublishingPublishable* _tmp13_; SpitPublishingPublishable* p = NULL; #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = _g_object_ref0 (p_collection[p_it]); + _tmp13_ = _g_object_ref0 (p_collection[p_it]); #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - p = _tmp15_; -#line 2810 "TumblrPublishing.c" + p = _tmp13_; +#line 3051 "TumblrPublishing.c" { - GeeArrayList* _tmp16_; - SpitPublishingPublishable* _tmp17_; + GeeArrayList* _tmp14_; + SpitPublishingPublishable* _tmp15_; #line 322 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:322: ACTION: add publishable"); #line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = sorted_list; + _tmp14_ = sorted_list; #line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = p; + _tmp15_ = p; #line 323 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp17_); + gee_abstract_collection_add (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, GEE_TYPE_ABSTRACT_COLLECTION, GeeAbstractCollection), _tmp15_); #line 321 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (p); -#line 2824 "TumblrPublishing.c" +#line 3065 "TumblrPublishing.c" } } } #line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = sorted_list; + _tmp16_ = sorted_list; #line 325 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = self->priv->blogs; + gee_list_sort (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GEE_TYPE_LIST, GeeList), _publishing_tumblr_tumblr_publisher_tumblr_date_time_compare_func_gcompare_data_func, NULL, NULL); #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19__length1 = self->priv->blogs_length1; + _tmp17_ = self->priv->blogs; #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self); + _tmp17__length1 = self->priv->blogs_length1; #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = _tmp19_[_tmp20_]; + _tmp18_ = _tmp17_[publishing_tumblr_tumblr_publisher_get_persistent_default_blog (self)]; #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = _tmp21_->url; + _tmp19_ = _tmp18_->url; #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = g_strdup (_tmp22_); + _tmp20_ = g_strdup (_tmp19_); #line 326 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - blog_url = _tmp23_; + blog_url = _tmp20_; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = self->priv->session; + _tmp21_ = self->priv->session; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = sorted_list; + _tmp22_ = sorted_list; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp26_); + _tmp24_ = gee_collection_to_array (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, GEE_TYPE_COLLECTION, GeeCollection), &_tmp23_); #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = _tmp27_; + _tmp25_ = _tmp24_; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28__length1 = _tmp26_; + _tmp25__length1 = _tmp23_; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = blog_url; + _tmp26_ = blog_url; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp24_, _tmp28_, _tmp26_, _tmp29_); + _tmp27_ = publishing_tumblr_tumblr_publisher_uploader_new (_tmp21_, _tmp25_, _tmp23_, _tmp26_); #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = _tmp30_; + _tmp28_ = _tmp27_; #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = (_vala_array_free (_tmp28_, _tmp28__length1, (GDestroyNotify) g_object_unref), NULL); + _tmp25_ = (_vala_array_free (_tmp25_, _tmp25__length1, (GDestroyNotify) g_object_unref), NULL); #line 328 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - uploader = _tmp31_; + uploader = _tmp28_; #line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = uploader; + _tmp29_ = uploader; #line 329 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, 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 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = uploader; + _tmp30_ = uploader; #line 330 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, 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 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = uploader; + _tmp31_ = uploader; #line 331 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + publishing_rest_support_batch_uploader_upload (G_TYPE_CHECK_INSTANCE_CAST (_tmp31_, PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, PublishingRESTSupportBatchUploader), _publishing_tumblr_tumblr_publisher_on_upload_status_updated_spit_publishing_progress_callback, self); #line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishing_rest_support_batch_uploader_unref0 (uploader); #line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2889,11 +3128,13 @@ static void publishing_tumblr_tumblr_publisher_do_publish (PublishingTumblrTumbl _g_object_unref0 (sorted_list); #line 303 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishables = (_vala_array_free (publishables, publishables_length1, (GDestroyNotify) g_object_unref), NULL); -#line 2886 "TumblrPublishing.c" +#line 3125 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingTumblrTumblrPublisher* self) +{ SpitPublishingPluginHost* _tmp0_; SpitPublishingPluginHost* _tmp1_; #line 334 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -2908,150 +3149,124 @@ static void publishing_tumblr_tumblr_publisher_do_show_success_pane (PublishingT _tmp1_ = self->priv->host; #line 338 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" spit_publishing_plugin_host_install_success_pane (_tmp1_); -#line 2905 "TumblrPublishing.c" +#line 3146 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, gint file_number, gdouble completed_fraction) { - gboolean _tmp0_; - gdouble _tmp1_; - SpitPublishingProgressCallback _tmp2_; - void* _tmp2__target; - SpitPublishingProgressCallback _tmp3_; - void* _tmp3__target; - gint _tmp4_; - gdouble _tmp5_; +static void +publishing_tumblr_tumblr_publisher_on_upload_status_updated (PublishingTumblrTumblrPublisher* self, + gint file_number, + gdouble completed_fraction) +{ + SpitPublishingProgressCallback _tmp0_; + void* _tmp0__target; + SpitPublishingProgressCallback _tmp1_; + void* _tmp1__target; #line 342 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 343 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp0_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 344 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2926 "TumblrPublishing.c" +#line 3165 "TumblrPublishing.c" } -#line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = completed_fraction; #line 346 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:346: EVENT: uploader reports upload %.2f percent" \ -" complete.", 100.0 * _tmp1_); +" complete.", 100.0 * completed_fraction); #line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->progress_reporter; + _tmp0_ = self->priv->progress_reporter; #line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2__target = self->priv->progress_reporter_target; + _tmp0__target = self->priv->progress_reporter_target; #line 348 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _vala_assert (_tmp2_ != NULL, "progress_reporter != null"); -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = self->priv->progress_reporter; + _vala_assert (_tmp0_ != NULL, "progress_reporter != null"); #line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3__target = self->priv->progress_reporter_target; + _tmp1_ = self->priv->progress_reporter; #line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = file_number; + _tmp1__target = self->priv->progress_reporter_target; #line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = completed_fraction; -#line 350 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ (_tmp4_, _tmp5_, _tmp3__target); -#line 2948 "TumblrPublishing.c" + _tmp1_ (file_number, completed_fraction, _tmp1__target); +#line 3181 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, gint num_published) { - gboolean _tmp0_; - gint _tmp1_; - PublishingRESTSupportBatchUploader* _tmp2_; - guint _tmp3_; - PublishingRESTSupportBatchUploader* _tmp4_; - guint _tmp5_; +static void +publishing_tumblr_tumblr_publisher_on_upload_complete (PublishingTumblrTumblrPublisher* self, + PublishingRESTSupportBatchUploader* uploader, + gint num_published) +{ + guint _tmp0_; + guint _tmp1_; #line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 353 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); #line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 355 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp0_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 356 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 2969 "TumblrPublishing.c" +#line 3200 "TumblrPublishing.c" } -#line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = num_published; #line 358 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:358: EVENT: uploader reports upload complete; %d" \ -" items published.", _tmp1_); -#line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = uploader; +" items published.", num_published); #line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp3_, NULL, FALSE); + g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp0_, NULL, FALSE); #line 360 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp0_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); #line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = uploader; + g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); #line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp5_, NULL, FALSE); -#line 361 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); #line 363 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_do_show_success_pane (self); -#line 2989 "TumblrPublishing.c" +#line 3214 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, PublishingRESTSupportBatchUploader* uploader, GError* err) { - gboolean _tmp0_; - GError* _tmp1_; - const gchar* _tmp2_; - PublishingRESTSupportBatchUploader* _tmp3_; - guint _tmp4_; - PublishingRESTSupportBatchUploader* _tmp5_; - guint _tmp6_; - SpitPublishingPluginHost* _tmp7_; - GError* _tmp8_; +static void +publishing_tumblr_tumblr_publisher_on_upload_error (PublishingTumblrTumblrPublisher* self, + PublishingRESTSupportBatchUploader* uploader, + GError* err) +{ + const gchar* _tmp0_; + guint _tmp1_; + guint _tmp2_; + SpitPublishingPluginHost* _tmp3_; #line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 366 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_REST_SUPPORT_IS_BATCH_UPLOADER (uploader)); #line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 368 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp0_) { + if (!spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 369 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 3013 "TumblrPublishing.c" +#line 3235 "TumblrPublishing.c" } #line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = err; -#line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = _tmp1_->message; + _tmp0_ = err->message; #line 371 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:371: EVENT: uploader reports upload error = '%s'" \ -".", _tmp2_); +".", _tmp0_); #line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = uploader; + g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp1_, NULL, FALSE); #line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-complete", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp4_, NULL, FALSE); -#line 373 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = uploader; + g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp1_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_complete_publishing_rest_support_batch_uploader_upload_complete, self); #line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp6_, NULL, FALSE); + g_signal_parse_name ("upload-error", PUBLISHING_REST_SUPPORT_TYPE_BATCH_UPLOADER, &_tmp2_, NULL, FALSE); #line 374 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + g_signal_handlers_disconnect_matched (uploader, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp2_, 0, NULL, (GCallback) _publishing_tumblr_tumblr_publisher_on_upload_error_publishing_rest_support_batch_uploader_upload_error, self); #line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = self->priv->host; + _tmp3_ = self->priv->host; #line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = err; -#line 376 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_plugin_host_post_error (_tmp7_, _tmp8_); -#line 3039 "TumblrPublishing.c" + spit_publishing_plugin_host_post_error (_tmp3_, err); +#line 3253 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) { +static void +publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblrPublisher* self) +{ SpitPublishingAuthenticator* _tmp0_; - gboolean _tmp1_; #line 380 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 381 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3060,82 +3275,80 @@ static void publishing_tumblr_tumblr_publisher_do_logout (PublishingTumblrTumblr #line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = self->priv->authenticator; #line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = spit_publishing_authenticator_can_logout (_tmp0_); -#line 383 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp1_) { -#line 3056 "TumblrPublishing.c" - SpitPublishingAuthenticator* _tmp2_; + if (spit_publishing_authenticator_can_logout (_tmp0_)) { +#line 3269 "TumblrPublishing.c" + SpitPublishingAuthenticator* _tmp1_; #line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = self->priv->authenticator; + _tmp1_ = self->priv->authenticator; #line 384 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_authenticator_logout (_tmp2_); -#line 3062 "TumblrPublishing.c" + spit_publishing_authenticator_logout (_tmp1_); +#line 3275 "TumblrPublishing.c" } #line 387 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->running = FALSE; #line 389 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_attempt_start (self); -#line 3068 "TumblrPublishing.c" +#line 3281 "TumblrPublishing.c" } -void publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self) { - gboolean _tmp0_; - SpitPublishingAuthenticator* _tmp1_; +void +publishing_tumblr_tumblr_publisher_attempt_start (PublishingTumblrTumblrPublisher* self) +{ + SpitPublishingAuthenticator* _tmp0_; #line 392 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (self)); #line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 393 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_) { + if (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/TumblrPublishing.vala" return; -#line 3083 "TumblrPublishing.c" +#line 3295 "TumblrPublishing.c" } #line 396 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:396: TumblrPublisher: starting interaction."); #line 398 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->running = TRUE; #line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->authenticator; + _tmp0_ = self->priv->authenticator; #line 399 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - spit_publishing_authenticator_authenticate (_tmp1_); -#line 3093 "TumblrPublishing.c" + spit_publishing_authenticator_authenticate (_tmp0_); +#line 3305 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) { +static void +publishing_tumblr_tumblr_publisher_real_start (SpitPublishingPublisher* base) +{ PublishingTumblrTumblrPublisher * self; gboolean _tmp0_; - gboolean _tmp1_; #line 402 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); #line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher)); -#line 403 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp0_) { + if (spit_publishing_publisher_is_running (G_TYPE_CHECK_INSTANCE_CAST (self, SPIT_PUBLISHING_TYPE_PUBLISHER, SpitPublishingPublisher))) { #line 404 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 3109 "TumblrPublishing.c" +#line 3320 "TumblrPublishing.c" } #line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = self->priv->was_started; + _tmp0_ = self->priv->was_started; #line 406 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp1_) { + if (_tmp0_) { #line 407 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_error ("TumblrPublishing.vala:407: %s", _ ("TumblrPublisher: start( ): can’t start; this publisher is not restarta" \ "ble.")); -#line 3117 "TumblrPublishing.c" +#line 3328 "TumblrPublishing.c" } #line 409 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:409: TumblrPublisher: starting interaction."); #line 411 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_attempt_start (self); -#line 3123 "TumblrPublishing.c" +#line 3334 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base) { +static void +publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublisher* base) +{ PublishingTumblrTumblrPublisher * self; #line 414 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TYPE_TUMBLR_PUBLISHER, PublishingTumblrTumblrPublisher); @@ -3143,110 +3356,134 @@ static void publishing_tumblr_tumblr_publisher_real_stop (SpitPublishingPublishe g_debug ("TumblrPublishing.vala:415: TumblrPublisher: stop( ) invoked."); #line 420 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->running = FALSE; -#line 3135 "TumblrPublishing.c" +#line 3348 "TumblrPublishing.c" } -static gpointer _publishing_tumblr_size_entry_ref0 (gpointer self) { +static gpointer +_publishing_tumblr_size_entry_ref0 (gpointer self) +{ #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self ? publishing_tumblr_size_entry_ref (self) : NULL; -#line 3142 "TumblrPublishing.c" +#line 3357 "TumblrPublishing.c" } -static PublishingTumblrSizeEntry** _vala_array_dup9 (PublishingTumblrSizeEntry** self, int length) { +static PublishingTumblrSizeEntry** +_vala_array_dup9 (PublishingTumblrSizeEntry** self, + int length) +{ PublishingTumblrSizeEntry** result; int i; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result = g_new0 (PublishingTumblrSizeEntry*, length + 1); #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (i = 0; i < length; i++) { -#line 3153 "TumblrPublishing.c" +#line 3371 "TumblrPublishing.c" PublishingTumblrSizeEntry* _tmp0_; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = _publishing_tumblr_size_entry_ref0 (self[i]); #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result[i] = _tmp0_; -#line 3159 "TumblrPublishing.c" +#line 3377 "TumblrPublishing.c" } #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 3163 "TumblrPublishing.c" +#line 3381 "TumblrPublishing.c" } -static gpointer _publishing_tumblr_blog_entry_ref0 (gpointer self) { +static gpointer +_publishing_tumblr_blog_entry_ref0 (gpointer self) +{ #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self ? publishing_tumblr_blog_entry_ref (self) : NULL; -#line 3170 "TumblrPublishing.c" +#line 3390 "TumblrPublishing.c" } -static PublishingTumblrBlogEntry** _vala_array_dup10 (PublishingTumblrBlogEntry** self, int length) { +static PublishingTumblrBlogEntry** +_vala_array_dup10 (PublishingTumblrBlogEntry** self, + int length) +{ PublishingTumblrBlogEntry** result; int i; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result = g_new0 (PublishingTumblrBlogEntry*, length + 1); #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (i = 0; i < length; i++) { -#line 3181 "TumblrPublishing.c" +#line 3404 "TumblrPublishing.c" PublishingTumblrBlogEntry* _tmp0_; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp0_ = _publishing_tumblr_blog_entry_ref0 (self[i]); #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" result[i] = _tmp0_; -#line 3187 "TumblrPublishing.c" +#line 3410 "TumblrPublishing.c" } #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 3191 "TumblrPublishing.c" +#line 3414 "TumblrPublishing.c" } -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_on_blog_changed_gtk_combo_box_changed (GtkComboBox* _sender, + gpointer self) +{ #line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3198 "TumblrPublishing.c" +#line 3424 "TumblrPublishing.c" } -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_size_changed_gtk_combo_box_changed (GtkComboBox* _sender, + gpointer self) +{ #line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_changed ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3205 "TumblrPublishing.c" +#line 3434 "TumblrPublishing.c" } -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_logout_clicked_gtk_button_clicked (GtkButton* _sender, + gpointer self) +{ #line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3212 "TumblrPublishing.c" +#line 3444 "TumblrPublishing.c" } -static void _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) { +static void +_publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked (GtkButton* _sender, + gpointer self) +{ #line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3219 "TumblrPublishing.c" +#line 3454 "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* +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_; - const gchar* _tmp1_; - gchar* _tmp2_; - PublishingTumblrTumblrPublisher* _tmp3_; - PublishingTumblrTumblrPublisher* _tmp4_; - SpitPublishingPublisherMediaType _tmp5_; - PublishingTumblrSizeEntry** _tmp6_; - gint _tmp6__length1; - PublishingTumblrSizeEntry** _tmp7_; - gint _tmp7__length1; - PublishingTumblrBlogEntry** _tmp8_; - gint _tmp8__length1; - PublishingTumblrBlogEntry** _tmp9_; - gint _tmp9__length1; + gchar* _tmp1_; + PublishingTumblrTumblrPublisher* _tmp2_; + PublishingTumblrSizeEntry** _tmp3_; + gint _tmp3__length1; + PublishingTumblrBlogEntry** _tmp4_; + gint _tmp4__length1; GError * _inner_error_ = NULL; #line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_TUMBLR_IS_TUMBLR_PUBLISHER (publisher), NULL); @@ -3263,269 +3500,252 @@ PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_p #line 456 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->pane_widget = _tmp0_; #line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = username; -#line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = g_strdup (_tmp1_); + _tmp1_ = g_strdup (username); #line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->priv->username); #line 457 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->username = _tmp2_; + self->priv->username = _tmp1_; #line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = publisher; -#line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _g_object_ref0 (_tmp3_); + _tmp2_ = _g_object_ref0 (publisher); #line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->publisher); #line 458 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publisher = _tmp4_; -#line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = media_type; + self->priv->publisher = _tmp2_; #line 459 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->media_type = _tmp5_; + self->priv->media_type = media_type; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = sizes; + _tmp3_ = (sizes != NULL) ? _vala_array_dup9 (sizes, sizes_length1) : ((gpointer) sizes); #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6__length1 = sizes_length1; -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = (_tmp6_ != NULL) ? _vala_array_dup9 (_tmp6_, _tmp6__length1) : ((gpointer) _tmp6_); -#line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7__length1 = _tmp6__length1; + _tmp3__length1 = sizes_length1; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->sizes = (_vala_array_free (self->priv->sizes, self->priv->sizes_length1, (GDestroyNotify) publishing_tumblr_size_entry_unref), NULL); #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes = _tmp7_; + self->priv->sizes = _tmp3_; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->sizes_length1 = _tmp7__length1; + self->priv->sizes_length1 = _tmp3__length1; #line 460 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->_sizes_size_ = self->priv->sizes_length1; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = blogs; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8__length1 = blogs_length1; -#line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = (_tmp8_ != NULL) ? _vala_array_dup10 (_tmp8_, _tmp8__length1) : ((gpointer) _tmp8_); + _tmp4_ = (blogs != NULL) ? _vala_array_dup10 (blogs, blogs_length1) : ((gpointer) blogs); #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9__length1 = _tmp8__length1; + _tmp4__length1 = blogs_length1; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->blogs = (_vala_array_free (self->priv->blogs, self->priv->blogs_length1, (GDestroyNotify) publishing_tumblr_blog_entry_unref), NULL); #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs = _tmp9_; + self->priv->blogs = _tmp4_; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blogs_length1 = _tmp9__length1; + self->priv->blogs_length1 = _tmp4__length1; #line 461 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->_blogs_size_ = self->priv->blogs_length1; -#line 3306 "TumblrPublishing.c" +#line 3529 "TumblrPublishing.c" { - GtkBuilder* _tmp10_; + GtkBuilder* _tmp5_; + GtkBuilder* _tmp6_; + GtkBuilder* _tmp7_; + GtkBuilder* _tmp8_; + GObject* _tmp9_; + GtkBox* _tmp10_; GtkBuilder* _tmp11_; - GtkBuilder* _tmp12_; - GtkBuilder* _tmp13_; - GObject* _tmp14_; - GtkBox* _tmp15_; - GtkBuilder* _tmp16_; - GObject* _tmp17_; - GtkLabel* _tmp18_; - GtkBuilder* _tmp19_; - GObject* _tmp20_; - GtkButton* _tmp21_; - GtkBuilder* _tmp22_; - GObject* _tmp23_; - GtkButton* _tmp24_; - GtkBuilder* _tmp25_; - GObject* _tmp26_; - GtkComboBoxText* _tmp27_; - GtkBuilder* _tmp28_; - GObject* _tmp29_; - GtkLabel* _tmp30_; - GtkBuilder* _tmp31_; - GObject* _tmp32_; - GtkComboBoxText* _tmp33_; - GtkBuilder* _tmp34_; - GObject* _tmp35_; - GtkLabel* _tmp36_; + GObject* _tmp12_; + GtkLabel* _tmp13_; + GtkBuilder* _tmp14_; + GObject* _tmp15_; + GtkButton* _tmp16_; + GtkBuilder* _tmp17_; + GObject* _tmp18_; + GtkButton* _tmp19_; + GtkBuilder* _tmp20_; + GObject* _tmp21_; + GtkComboBoxText* _tmp22_; + GtkBuilder* _tmp23_; + GObject* _tmp24_; + GtkLabel* _tmp25_; + GtkBuilder* _tmp26_; + GObject* _tmp27_; + GtkComboBoxText* _tmp28_; + GtkBuilder* _tmp29_; + GObject* _tmp30_; + GtkLabel* _tmp31_; gchar* upload_label_text = NULL; - const gchar* _tmp37_; - gchar* _tmp38_; - GtkLabel* _tmp39_; - const gchar* _tmp40_; - GtkComboBoxText* _tmp41_; - SpitPublishingPublisherMediaType _tmp42_; - GtkButton* _tmp46_; - GtkButton* _tmp47_; + const gchar* _tmp32_; + gchar* _tmp33_; + GtkLabel* _tmp34_; + const gchar* _tmp35_; + GtkComboBoxText* _tmp36_; + GtkButton* _tmp40_; + GtkButton* _tmp41_; #line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = gtk_builder_new (); + _tmp5_ = gtk_builder_new (); #line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->builder); #line 464 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->builder = _tmp10_; + self->priv->builder = _tmp5_; #line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = self->priv->builder; + _tmp6_ = self->priv->builder; #line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_builder_add_from_resource (_tmp11_, PLUGIN_RESOURCE_PATH "/tumblr_publishing_options_pane.ui", &_inner_error_); + gtk_builder_add_from_resource (_tmp6_, PLUGIN_RESOURCE_PATH "/tumblr_publishing_options_pane.ui", &_inner_error_); #line 465 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (G_UNLIKELY (_inner_error_ != NULL)) { -#line 3356 "TumblrPublishing.c" +#line 3578 "TumblrPublishing.c" goto __catch23_g_error; } #line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = self->priv->builder; + _tmp7_ = self->priv->builder; #line 467 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_builder_connect_signals (_tmp12_, NULL); + gtk_builder_connect_signals (_tmp7_, NULL); #line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = self->priv->builder; + _tmp8_ = self->priv->builder; #line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = gtk_builder_get_object (_tmp13_, "tumblr_pane"); + _tmp9_ = gtk_builder_get_object (_tmp8_, "tumblr_pane"); #line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, gtk_box_get_type (), GtkBox)); + _tmp10_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, gtk_box_get_type (), GtkBox)); #line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->pane_widget); #line 470 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->pane_widget = _tmp15_; + self->priv->pane_widget = _tmp10_; #line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = self->priv->builder; + _tmp11_ = self->priv->builder; #line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp17_ = gtk_builder_get_object (_tmp16_, "upload_info_label"); + _tmp12_ = gtk_builder_get_object (_tmp11_, "upload_info_label"); #line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp18_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, gtk_label_get_type (), GtkLabel)); + _tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, gtk_label_get_type (), GtkLabel)); #line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->upload_info_label); #line 471 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->upload_info_label = _tmp18_; + self->priv->upload_info_label = _tmp13_; #line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp19_ = self->priv->builder; + _tmp14_ = self->priv->builder; #line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp20_ = gtk_builder_get_object (_tmp19_, "logout_button"); + _tmp15_ = gtk_builder_get_object (_tmp14_, "logout_button"); #line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp21_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, gtk_button_get_type (), GtkButton)); + _tmp16_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, gtk_button_get_type (), GtkButton)); #line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->logout_button); #line 472 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->logout_button = _tmp21_; + self->priv->logout_button = _tmp16_; #line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp22_ = self->priv->builder; + _tmp17_ = self->priv->builder; #line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp23_ = gtk_builder_get_object (_tmp22_, "publish_button"); + _tmp18_ = gtk_builder_get_object (_tmp17_, "publish_button"); #line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp24_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, gtk_button_get_type (), GtkButton)); + _tmp19_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp18_, gtk_button_get_type (), GtkButton)); #line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->publish_button); #line 473 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->publish_button = _tmp24_; + self->priv->publish_button = _tmp19_; #line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp25_ = self->priv->builder; + _tmp20_ = self->priv->builder; #line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp26_ = gtk_builder_get_object (_tmp25_, "size_combo"); + _tmp21_ = gtk_builder_get_object (_tmp20_, "size_combo"); #line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp27_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, gtk_combo_box_text_get_type (), GtkComboBoxText)); + _tmp22_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp21_, gtk_combo_box_text_get_type (), GtkComboBoxText)); #line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->size_combo); #line 474 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_combo = _tmp27_; + self->priv->size_combo = _tmp22_; #line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp28_ = self->priv->builder; + _tmp23_ = self->priv->builder; #line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp29_ = gtk_builder_get_object (_tmp28_, "size_label"); + _tmp24_ = gtk_builder_get_object (_tmp23_, "size_label"); #line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp30_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp29_, gtk_label_get_type (), GtkLabel)); + _tmp25_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, gtk_label_get_type (), GtkLabel)); #line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->size_label); #line 475 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->size_label = _tmp30_; + self->priv->size_label = _tmp25_; #line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp31_ = self->priv->builder; + _tmp26_ = self->priv->builder; #line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp32_ = gtk_builder_get_object (_tmp31_, "blog_combo"); + _tmp27_ = gtk_builder_get_object (_tmp26_, "blog_combo"); #line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp33_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, gtk_combo_box_text_get_type (), GtkComboBoxText)); + _tmp28_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, gtk_combo_box_text_get_type (), GtkComboBoxText)); #line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->blog_combo); #line 476 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_combo = _tmp33_; + self->priv->blog_combo = _tmp28_; #line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp34_ = self->priv->builder; + _tmp29_ = self->priv->builder; #line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp35_ = gtk_builder_get_object (_tmp34_, "blog_label"); + _tmp30_ = gtk_builder_get_object (_tmp29_, "blog_label"); #line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp36_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp35_, gtk_label_get_type (), GtkLabel)); + _tmp31_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, gtk_label_get_type (), GtkLabel)); #line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (self->priv->blog_label); #line 477 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_label = _tmp36_; + self->priv->blog_label = _tmp31_; #line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp37_ = self->priv->username; + _tmp32_ = self->priv->username; #line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp38_ = g_strdup_printf (_ ("You are logged into Tumblr as %s.\n\n"), _tmp37_); + _tmp33_ = g_strdup_printf (_ ("You are logged into Tumblr as %s.\n\n"), _tmp32_); #line 480 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - upload_label_text = _tmp38_; + upload_label_text = _tmp33_; #line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp39_ = self->priv->upload_info_label; + _tmp34_ = self->priv->upload_info_label; #line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp40_ = upload_label_text; + _tmp35_ = upload_label_text; #line 481 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_label_set_label (_tmp39_, _tmp40_); + gtk_label_set_label (_tmp34_, _tmp35_); #line 483 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (self); #line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp41_ = self->priv->blog_combo; + _tmp36_ = self->priv->blog_combo; #line 484 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp41_, 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 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp42_ = media_type; + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, 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 486 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (_tmp42_ != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { -#line 3465 "TumblrPublishing.c" - GtkComboBoxText* _tmp43_; + if (media_type != SPIT_PUBLISHING_PUBLISHER_MEDIA_TYPE_VIDEO) { +#line 3685 "TumblrPublishing.c" + GtkComboBoxText* _tmp37_; #line 487 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (self); #line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = self->priv->size_combo; + _tmp37_ = self->priv->size_combo; #line 488 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp43_, 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 3473 "TumblrPublishing.c" + g_signal_connect_object (G_TYPE_CHECK_INSTANCE_CAST (_tmp37_, 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 3693 "TumblrPublishing.c" } else { - GtkComboBoxText* _tmp44_; - GtkLabel* _tmp45_; + GtkComboBoxText* _tmp38_; + GtkLabel* _tmp39_; #line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp44_ = self->priv->size_combo; + _tmp38_ = self->priv->size_combo; #line 491 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, gtk_widget_get_type (), GtkWidget), FALSE); + gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, gtk_widget_get_type (), GtkWidget), FALSE); #line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp45_ = self->priv->size_label; + _tmp39_ = self->priv->size_label; #line 492 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp45_, gtk_widget_get_type (), GtkWidget), FALSE); -#line 3485 "TumblrPublishing.c" + gtk_widget_set_sensitive (G_TYPE_CHECK_INSTANCE_CAST (_tmp39_, gtk_widget_get_type (), GtkWidget), FALSE); +#line 3705 "TumblrPublishing.c" } #line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp46_ = self->priv->logout_button; + _tmp40_ = self->priv->logout_button; #line 495 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp46_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); + g_signal_connect_object (_tmp40_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_logout_clicked_gtk_button_clicked, self, 0); #line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp47_ = self->priv->publish_button; + _tmp41_ = self->priv->publish_button; #line 496 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_signal_connect_object (_tmp47_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); + g_signal_connect_object (_tmp41_, "clicked", (GCallback) _publishing_tumblr_tumblr_publisher_publishing_options_pane_on_publish_clicked_gtk_button_clicked, self, 0); #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (upload_label_text); -#line 3497 "TumblrPublishing.c" +#line 3717 "TumblrPublishing.c" } goto __finally23; __catch23_g_error: { GError* e = NULL; - GError* _tmp48_; - const gchar* _tmp49_; + GError* _tmp42_; + const gchar* _tmp43_; #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" e = _inner_error_; #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _inner_error_ = NULL; #line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp48_ = e; + _tmp42_ = e; #line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp49_ = _tmp48_->message; + _tmp43_ = _tmp42_->message; #line 498 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_warning (_ ("Could not load UI: %s"), _tmp49_); + g_warning (_ ("Could not load UI: %s"), _tmp43_); #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_error_free0 (e); -#line 3517 "TumblrPublishing.c" +#line 3737 "TumblrPublishing.c" } __finally23: #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3536,40 +3756,54 @@ PublishingTumblrTumblrPublisherPublishingOptionsPane* publishing_tumblr_tumblr_p g_clear_error (&_inner_error_); #line 463 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return NULL; -#line 3528 "TumblrPublishing.c" +#line 3748 "TumblrPublishing.c" } #line 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 3532 "TumblrPublishing.c" +#line 3752 "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) { +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 454 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3539 "TumblrPublishing.c" +#line 3767 "TumblrPublishing.c" } -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 (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ #line 506 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 507 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 3548 "TumblrPublishing.c" +#line 3778 "TumblrPublishing.c" } -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 (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ #line 510 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 513 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 3557 "TumblrPublishing.c" +#line 3789 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_blog_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ PublishingTumblrBlogEntry** _tmp0_; gint _tmp0__length1; #line 517 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3580,17 +3814,16 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ _tmp0__length1 = self->priv->blogs_length1; #line 518 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp0_ != NULL) { -#line 3572 "TumblrPublishing.c" +#line 3806 "TumblrPublishing.c" PublishingTumblrBlogEntry** _tmp1_; gint _tmp1__length1; GtkComboBoxText* _tmp6_; PublishingTumblrTumblrPublisher* _tmp7_; - gint _tmp8_; #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1_ = self->priv->blogs; #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1__length1 = self->priv->blogs_length1; -#line 3582 "TumblrPublishing.c" +#line 3815 "TumblrPublishing.c" { PublishingTumblrBlogEntry** b_collection = NULL; gint b_collection_length1 = 0; @@ -3602,14 +3835,14 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ b_collection_length1 = _tmp1__length1; #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (b_it = 0; b_it < _tmp1__length1; b_it = b_it + 1) { -#line 3594 "TumblrPublishing.c" +#line 3827 "TumblrPublishing.c" PublishingTumblrBlogEntry* _tmp2_; PublishingTumblrBlogEntry* b = NULL; #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp2_ = _publishing_tumblr_blog_entry_ref0 (b_collection[b_it]); #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" b = _tmp2_; -#line 3601 "TumblrPublishing.c" +#line 3834 "TumblrPublishing.c" { GtkComboBoxText* _tmp3_; PublishingTumblrBlogEntry* _tmp4_; @@ -3624,7 +3857,7 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ gtk_combo_box_text_append_text (_tmp3_, _tmp5_); #line 519 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishing_tumblr_blog_entry_unref0 (b); -#line 3616 "TumblrPublishing.c" +#line 3849 "TumblrPublishing.c" } } } @@ -3633,18 +3866,17 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ #line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp7_ = self->priv->publisher; #line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_blog (_tmp7_); -#line 521 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_); -#line 3628 "TumblrPublishing.c" + gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), publishing_tumblr_tumblr_publisher_get_persistent_default_blog (_tmp7_)); +#line 3859 "TumblrPublishing.c" } } -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 (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ PublishingTumblrTumblrPublisher* _tmp0_; GtkComboBoxText* _tmp1_; - gint _tmp2_; #line 525 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3652,14 +3884,14 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_blog_c #line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1_ = self->priv->blog_combo; #line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 526 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_set_persistent_default_blog (_tmp0_, _tmp2_); -#line 3647 "TumblrPublishing.c" + publishing_tumblr_tumblr_publisher_set_persistent_default_blog (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); +#line 3877 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_size_combo (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ PublishingTumblrSizeEntry** _tmp0_; gint _tmp0__length1; #line 529 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3670,17 +3902,16 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ _tmp0__length1 = self->priv->sizes_length1; #line 530 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp0_ != NULL) { -#line 3662 "TumblrPublishing.c" +#line 3894 "TumblrPublishing.c" PublishingTumblrSizeEntry** _tmp1_; gint _tmp1__length1; GtkComboBoxText* _tmp6_; PublishingTumblrTumblrPublisher* _tmp7_; - gint _tmp8_; #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1_ = self->priv->sizes; #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1__length1 = self->priv->sizes_length1; -#line 3672 "TumblrPublishing.c" +#line 3903 "TumblrPublishing.c" { PublishingTumblrSizeEntry** e_collection = NULL; gint e_collection_length1 = 0; @@ -3692,14 +3923,14 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ e_collection_length1 = _tmp1__length1; #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" for (e_it = 0; e_it < _tmp1__length1; e_it = e_it + 1) { -#line 3684 "TumblrPublishing.c" +#line 3915 "TumblrPublishing.c" PublishingTumblrSizeEntry* _tmp2_; PublishingTumblrSizeEntry* e = NULL; #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp2_ = _publishing_tumblr_size_entry_ref0 (e_collection[e_it]); #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" e = _tmp2_; -#line 3691 "TumblrPublishing.c" +#line 3922 "TumblrPublishing.c" { GtkComboBoxText* _tmp3_; PublishingTumblrSizeEntry* _tmp4_; @@ -3714,7 +3945,7 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ gtk_combo_box_text_append_text (_tmp3_, _tmp5_); #line 531 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _publishing_tumblr_size_entry_unref0 (e); -#line 3706 "TumblrPublishing.c" +#line 3937 "TumblrPublishing.c" } } } @@ -3723,18 +3954,17 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_populate_ #line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp7_ = self->priv->publisher; #line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = publishing_tumblr_tumblr_publisher_get_persistent_default_size (_tmp7_); -#line 533 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), _tmp8_); -#line 3718 "TumblrPublishing.c" + gtk_combo_box_set_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, gtk_combo_box_get_type (), GtkComboBox), publishing_tumblr_tumblr_publisher_get_persistent_default_size (_tmp7_)); +#line 3947 "TumblrPublishing.c" } } -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 (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ PublishingTumblrTumblrPublisher* _tmp0_; GtkComboBoxText* _tmp1_; - gint _tmp2_; #line 537 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3742,32 +3972,36 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_on_size_c #line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp1_ = self->priv->size_combo; #line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox)); -#line 538 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_tumblr_tumblr_publisher_set_persistent_default_size (_tmp0_, _tmp2_); -#line 3737 "TumblrPublishing.c" + publishing_tumblr_tumblr_publisher_set_persistent_default_size (_tmp0_, gtk_combo_box_get_active (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_combo_box_get_type (), GtkComboBox))); +#line 3965 "TumblrPublishing.c" } -void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +void +publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ #line 542 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 543 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL], 0); -#line 3746 "TumblrPublishing.c" +#line 3976 "TumblrPublishing.c" } -void publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) { +void +publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* self) +{ #line 546 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_PUBLISHING_OPTIONS_PANE (self)); #line 547 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_signal_emit (self, publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL], 0); -#line 3755 "TumblrPublishing.c" +#line 3987 "TumblrPublishing.c" } -static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) { +static GtkWidget* +publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_widget (SpitPublishingDialogPane* base) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane * self; GtkWidget* result = NULL; GtkBox* _tmp0_; @@ -3782,11 +4016,13 @@ static GtkWidget* publishing_tumblr_tumblr_publisher_publishing_options_pane_rea result = _tmp1_; #line 551 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 3774 "TumblrPublishing.c" +#line 4008 "TumblrPublishing.c" } -static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) { +static SpitPublishingDialogPaneGeometryOptions +publishing_tumblr_tumblr_publisher_publishing_options_pane_real_get_preferred_geometry (SpitPublishingDialogPane* base) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane * self; SpitPublishingDialogPaneGeometryOptions result = 0; #line 554 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3795,25 +4031,33 @@ static SpitPublishingDialogPaneGeometryOptions publishing_tumblr_tumblr_publishe result = SPIT_PUBLISHING_DIALOG_PANE_GEOMETRY_OPTIONS_NONE; #line 555 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 3787 "TumblrPublishing.c" +#line 4023 "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) { +static void +_publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish_publishing_tumblr_tumblr_publisher_publishing_options_pane_publish (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, + gpointer self) +{ #line 559 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_publish ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3794 "TumblrPublishing.c" +#line 4033 "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) { +static void +_publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout_publishing_tumblr_tumblr_publisher_publishing_options_pane_logout (PublishingTumblrTumblrPublisherPublishingOptionsPane* _sender, + gpointer self) +{ #line 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_notify_logout ((PublishingTumblrTumblrPublisherPublishingOptionsPane*) self); -#line 3801 "TumblrPublishing.c" +#line 4043 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed (SpitPublishingDialogPane* base) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane * self; #line 558 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); @@ -3821,11 +4065,13 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_p 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 560 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3813 "TumblrPublishing.c" +#line 4057 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled (SpitPublishingDialogPane* base) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane * self; guint _tmp0_; guint _tmp1_; @@ -3839,11 +4085,13 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_p g_signal_parse_name ("logout", PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, &_tmp1_, NULL, FALSE); #line 565 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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 3831 "TumblrPublishing.c" +#line 4077 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass * klass) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_class_init (PublishingTumblrTumblrPublisherPublishingOptionsPaneClass * klass) +{ #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class = g_type_class_peek_parent (klass); #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3854,11 +4102,13 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_class_ini publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_PUBLISH_SIGNAL] = 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 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_signals[PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_LOGOUT_SIGNAL] = 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 3846 "TumblrPublishing.c" +#line 4094 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_interface_init (SpitPublishingDialogPaneIface * iface) +{ #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publishing_dialog_pane_parent_iface = g_type_interface_peek_parent (iface); #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -3869,11 +4119,13 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_spit_publ iface->on_pane_installed = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_installed; #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" iface->on_pane_uninstalled = (void (*) (SpitPublishingDialogPane *)) publishing_tumblr_tumblr_publisher_publishing_options_pane_real_on_pane_uninstalled; -#line 3861 "TumblrPublishing.c" +#line 4111 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init (PublishingTumblrTumblrPublisherPublishingOptionsPane * self) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_init (PublishingTumblrTumblrPublisherPublishingOptionsPane * self) +{ gchar* _tmp0_; #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_PUBLISHING_OPTIONS_PANE_GET_PRIVATE (self); @@ -3911,11 +4163,13 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_instance_ self->priv->username = _tmp0_; #line 448 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->publisher = NULL; -#line 3903 "TumblrPublishing.c" +#line 4155 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject * obj) { +static void +publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize (GObject * obj) +{ PublishingTumblrTumblrPublisherPublishingOptionsPane * self; #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_PUBLISHING_OPTIONS_PANE, PublishingTumblrTumblrPublisherPublishingOptionsPane); @@ -3947,14 +4201,16 @@ static void publishing_tumblr_tumblr_publisher_publishing_options_pane_finalize _g_object_unref0 (self->priv->publisher); #line 432 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_publishing_options_pane_parent_class)->finalize (obj); -#line 3939 "TumblrPublishing.c" +#line 4193 "TumblrPublishing.c" } /** * The publishing options pane. */ -GType publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) { +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 }; @@ -3968,40 +4224,48 @@ GType publishing_tumblr_tumblr_publisher_publishing_options_pane_get_type (void) } -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session) { +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* +publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (GType object_type, + PublishingRESTSupportOAuth1Session* session) +{ PublishingTumblrTumblrPublisherUserInfoFetchTransaction* self = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; #line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); #line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = session; -#line 571 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherUserInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, _tmp0_, "https://api.tumblr.com/v2/user/info", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); + self = (PublishingTumblrTumblrPublisherUserInfoFetchTransaction*) publishing_rest_support_oauth1_transaction_construct_with_uri (object_type, session, "https://api.tumblr.com/v2/user/info", PUBLISHING_REST_SUPPORT_HTTP_METHOD_POST); #line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 3971 "TumblrPublishing.c" +#line 4227 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisherUserInfoFetchTransaction* publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) { +PublishingTumblrTumblrPublisherUserInfoFetchTransaction* +publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_new (PublishingRESTSupportOAuth1Session* session) +{ #line 570 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_USER_INFO_FETCH_TRANSACTION, session); -#line 3978 "TumblrPublishing.c" +#line 4236 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass * klass) { +static void +publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_class_init (PublishingTumblrTumblrPublisherUserInfoFetchTransactionClass * klass) +{ #line 569 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_parent_class = g_type_class_peek_parent (klass); -#line 3985 "TumblrPublishing.c" +#line 4245 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_instance_init (PublishingTumblrTumblrPublisherUserInfoFetchTransaction * self) { +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) { +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 }; @@ -4013,7 +4277,11 @@ GType publishing_tumblr_tumblr_publisher_user_info_fetch_transaction_get_type (v } -static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, guint8* data, int data_length1) { +static gchar* +publishing_tumblr_tumblr_publisher_upload_transaction_encode (PublishingTumblrTumblrPublisherUploadTransaction* self, + guint8* data, + int data_length1) +{ gchar* result = NULL; GString* s = NULL; GString* _tmp0_; @@ -4024,11 +4292,9 @@ static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (Publ gchar* _tmp2_; gint _tmp2__length1; gchar _tmp3_; - guint8* _tmp4_; - gint _tmp4__length1; - GString* _tmp14_; - const gchar* _tmp15_; - gchar* _tmp16_; + GString* _tmp13_; + const gchar* _tmp14_; + gchar* _tmp15_; #line 578 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_IS_UPLOAD_TRANSACTION (self), NULL); #line 579 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -4051,104 +4317,102 @@ static gchar* publishing_tumblr_tumblr_publisher_upload_transaction_encode (Publ _tmp2_[1] = (gchar) 0; #line 581 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp3_ = _tmp2_[1]; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = data; -#line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4__length1 = data_length1; -#line 4047 "TumblrPublishing.c" +#line 4309 "TumblrPublishing.c" { guint8* byte_collection = NULL; gint byte_collection_length1 = 0; gint _byte_collection_size_ = 0; gint byte_it = 0; #line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte_collection = _tmp4_; + byte_collection = data; #line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - byte_collection_length1 = _tmp4__length1; + byte_collection_length1 = data_length1; #line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - for (byte_it = 0; byte_it < _tmp4__length1; byte_it = byte_it + 1) { -#line 4059 "TumblrPublishing.c" + for (byte_it = 0; byte_it < data_length1; byte_it = byte_it + 1) { +#line 4321 "TumblrPublishing.c" guint8 byte = 0U; #line 582 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" byte = byte_collection[byte_it]; -#line 4063 "TumblrPublishing.c" +#line 4325 "TumblrPublishing.c" { - guint8 _tmp5_; + guint8 _tmp4_; #line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp5_ = byte; + _tmp4_ = byte; #line 584 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (((gint) _tmp5_) == 0) { -#line 4070 "TumblrPublishing.c" - GString* _tmp6_; + if (((gint) _tmp4_) == 0) { +#line 4332 "TumblrPublishing.c" + GString* _tmp5_; #line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp6_ = s; + _tmp5_ = s; #line 585 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp6_, "%00"); -#line 4076 "TumblrPublishing.c" + g_string_append (_tmp5_, "%00"); +#line 4338 "TumblrPublishing.c" } else { - gchar* _tmp7_; - gint _tmp7__length1; - guint8 _tmp8_; - gchar _tmp9_; - GString* _tmp10_; + gchar* _tmp6_; + gint _tmp6__length1; + guint8 _tmp7_; + gchar _tmp8_; + GString* _tmp9_; + gchar* _tmp10_; + gint _tmp10__length1; gchar* _tmp11_; - gint _tmp11__length1; gchar* _tmp12_; - gchar* _tmp13_; #line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_ = bytes; + _tmp6_ = bytes; #line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7__length1 = bytes_length1; + _tmp6__length1 = bytes_length1; #line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp8_ = byte; + _tmp7_ = byte; #line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp7_[0] = (gchar) _tmp8_; + _tmp6_[0] = (gchar) _tmp7_; #line 587 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp9_ = _tmp7_[0]; + _tmp8_ = _tmp6_[0]; #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp10_ = s; + _tmp9_ = s; #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11_ = bytes; + _tmp10_ = bytes; #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp11__length1 = bytes_length1; + _tmp10__length1 = bytes_length1; #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp12_ = soup_uri_encode ((const gchar*) _tmp11_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); + _tmp11_ = soup_uri_encode ((const gchar*) _tmp10_, PUBLISHING_TUMBLR_ENCODE_RFC_3986_EXTRA); #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp13_ = _tmp12_; + _tmp12_ = _tmp11_; #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - g_string_append (_tmp10_, _tmp13_); + g_string_append (_tmp9_, _tmp12_); #line 588 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp13_); -#line 4111 "TumblrPublishing.c" + _g_free0 (_tmp12_); +#line 4373 "TumblrPublishing.c" } } } } #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp14_ = s; + _tmp13_ = s; #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp15_ = _tmp14_->str; + _tmp14_ = _tmp13_->str; #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp16_ = g_strdup (_tmp15_); + _tmp15_ = g_strdup (_tmp14_); #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - result = _tmp16_; + result = _tmp15_; #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" bytes = (g_free (bytes), NULL); #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_string_free0 (s); #line 591 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 4130 "TumblrPublishing.c" +#line 4392 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url) { +PublishingTumblrTumblrPublisherUploadTransaction* +publishing_tumblr_tumblr_publisher_upload_transaction_construct (GType object_type, + PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable* publishable, + const gchar* blog_url) +{ PublishingTumblrTumblrPublisherUploadTransaction* self = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; - SpitPublishingPublishable* _tmp1_; - const gchar* _tmp2_; - gchar* _tmp3_; - gchar* _tmp4_; + gchar* _tmp0_; + gchar* _tmp1_; #line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); #line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -4158,33 +4422,34 @@ PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publi #line 596 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_debug ("TumblrPublishing.vala:596: Init upload transaction"); #line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = session; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = publishable; -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = blog_url; + _tmp0_ = g_strdup_printf ("https://api.tumblr.com/v2/blog/%s/post", blog_url); #line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = g_strdup_printf ("https://api.tumblr.com/v2/blog/%s/post", _tmp2_); -#line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp4_ = _tmp3_; + _tmp1_ = _tmp0_; #line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self = (PublishingTumblrTumblrPublisherUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, _tmp0_, _tmp1_, _tmp4_); + self = (PublishingTumblrTumblrPublisherUploadTransaction*) publishing_rest_support_oauth1_upload_transaction_construct (object_type, session, publishable, _tmp1_); #line 597 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp4_); + _g_free0 (_tmp1_); #line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 4165 "TumblrPublishing.c" +#line 4423 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisherUploadTransaction* publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable* publishable, const gchar* blog_url) { +PublishingTumblrTumblrPublisherUploadTransaction* +publishing_tumblr_tumblr_publisher_upload_transaction_new (PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable* publishable, + const gchar* blog_url) +{ #line 595 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_tumblr_publisher_upload_transaction_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, session, publishable, blog_url); -#line 4172 "TumblrPublishing.c" +#line 4434 "TumblrPublishing.c" } -static guint8* string_get_data (const gchar* self, int* result_length1) { +static guint8* +string_get_data (const gchar* self, + int* result_length1) +{ guint8* result; guint8* res = NULL; gint res_length1; @@ -4196,455 +4461,370 @@ static guint8* string_get_data (const gchar* self, int* result_length1) { gint _tmp3__length1; guint8* _tmp4_; gint _tmp4__length1; -#line 1428 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1442 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" g_return_val_if_fail (self != NULL, NULL); -#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" res = (guint8*) self; -#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" res_length1 = -1; -#line 1429 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1443 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _res_size_ = res_length1; -#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp0_ = strlen (self); -#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp1_ = _tmp0_; -#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" res_length1 = (gint) _tmp1_; -#line 1430 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1444 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp2_ = res_length1; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp3_ = res; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp3__length1 = res_length1; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp4_ = _tmp3_; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" _tmp4__length1 = _tmp3__length1; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" if (result_length1) { -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" *result_length1 = _tmp4__length1; -#line 4216 "TumblrPublishing.c" +#line 4481 "TumblrPublishing.c" } -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" result = _tmp4_; -#line 1431 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1445 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 4222 "TumblrPublishing.c" +#line 4487 "TumblrPublishing.c" } -static gchar* _vala_g_strjoinv (const gchar* separator, gchar** str_array, int str_array_length1) { +static gchar* +_vala_g_strjoinv (const gchar* separator, + gchar** str_array, + int str_array_length1) +{ gchar* result = NULL; - const gchar* _tmp0_; - gboolean _tmp1_ = FALSE; - gboolean _tmp2_ = FALSE; - gchar** _tmp3_; - gint _tmp3__length1; -#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp0_ = separator; -#line 1078 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp0_ == NULL) { -#line 1079 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + gboolean _tmp0_ = FALSE; +#line 1092 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (separator == NULL) { +#line 1093 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" separator = ""; -#line 4239 "TumblrPublishing.c" +#line 4502 "TumblrPublishing.c" } -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp3_ = str_array; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp3__length1 = str_array_length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp3_ != NULL) { -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp2_ = TRUE; -#line 4249 "TumblrPublishing.c" - } else { - gchar** _tmp4_; - gint _tmp4__length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp4_ = str_array; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp4__length1 = str_array_length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp2_ = _tmp4__length1 > 0; -#line 4259 "TumblrPublishing.c" - } -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp2_) { -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp1_ = TRUE; -#line 4265 "TumblrPublishing.c" - } else { - gboolean _tmp5_ = FALSE; - gchar** _tmp6_; - gint _tmp6__length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp6_ = str_array; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp6__length1 = str_array_length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp6__length1 == -1) { -#line 4276 "TumblrPublishing.c" - gchar** _tmp7_; - gint _tmp7__length1; - const gchar* _tmp8_; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp7_ = str_array; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp7__length1 = str_array_length1; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp8_ = _tmp7_[0]; -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp5_ = _tmp8_ != NULL; -#line 4288 "TumblrPublishing.c" +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (str_array != NULL) { +#line 4506 "TumblrPublishing.c" + gboolean _tmp1_ = FALSE; +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (str_array_length1 > 0) { +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp1_ = TRUE; +#line 4512 "TumblrPublishing.c" } else { -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp5_ = FALSE; -#line 4292 "TumblrPublishing.c" + gboolean _tmp2_ = FALSE; +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (str_array_length1 == -1) { +#line 4517 "TumblrPublishing.c" + const gchar* _tmp3_; +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp3_ = str_array[0]; +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp2_ = _tmp3_ != NULL; +#line 4523 "TumblrPublishing.c" + } else { +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp2_ = FALSE; +#line 4527 "TumblrPublishing.c" + } +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp1_ = _tmp2_; +#line 4531 "TumblrPublishing.c" } -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp1_ = _tmp5_; -#line 4296 "TumblrPublishing.c" +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp0_ = _tmp1_; +#line 4535 "TumblrPublishing.c" + } else { +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp0_ = FALSE; +#line 4539 "TumblrPublishing.c" } -#line 1081 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp1_) { -#line 4300 "TumblrPublishing.c" +#line 1095 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (_tmp0_) { +#line 4543 "TumblrPublishing.c" gint i = 0; gsize len = 0UL; - gint _tmp31_; - gint _tmp33_; - gint _tmp34_; - gsize _tmp35_; - const gchar* _tmp36_; - gint _tmp37_; - gint _tmp38_; - gint _tmp39_; + gint _tmp20_; + gint _tmp22_; + gint _tmp23_; + gsize _tmp24_; + gint _tmp25_; + gint _tmp26_; + gint _tmp27_; const gchar* res = NULL; - gsize _tmp40_; - void* _tmp41_; + gsize _tmp28_; + void* _tmp29_; void* ptr = NULL; - const gchar* _tmp42_; - gchar** _tmp43_; - gint _tmp43__length1; - const gchar* _tmp44_; - void* _tmp45_; - const gchar* _tmp62_; -#line 1083 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + const gchar* _tmp30_; + const gchar* _tmp31_; + void* _tmp32_; + const gchar* _tmp45_; +#line 1097 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" len = (gsize) 1; -#line 4323 "TumblrPublishing.c" +#line 4563 "TumblrPublishing.c" { - gboolean _tmp9_ = FALSE; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + gboolean _tmp4_ = FALSE; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" i = 0; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp9_ = TRUE; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp4_ = TRUE; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" while (TRUE) { -#line 4332 "TumblrPublishing.c" - gboolean _tmp11_ = FALSE; - gboolean _tmp12_ = FALSE; - gchar** _tmp13_; - gint _tmp13__length1; - gint _tmp21_ = 0; - gchar** _tmp22_; - gint _tmp22__length1; - gint _tmp23_; - const gchar* _tmp24_; - gsize _tmp30_; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (!_tmp9_) { -#line 4345 "TumblrPublishing.c" - gint _tmp10_; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp10_ = i; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - i = _tmp10_ + 1; -#line 4351 "TumblrPublishing.c" +#line 4572 "TumblrPublishing.c" + gboolean _tmp6_ = FALSE; + gboolean _tmp7_ = FALSE; + gint _tmp12_ = 0; + gint _tmp13_; + const gchar* _tmp14_; + gsize _tmp19_; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (!_tmp4_) { +#line 4581 "TumblrPublishing.c" + gint _tmp5_; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp5_ = i; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + i = _tmp5_ + 1; +#line 4587 "TumblrPublishing.c" } -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp9_ = FALSE; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp13_ = str_array; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp13__length1 = str_array_length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp13__length1 != -1) { -#line 4361 "TumblrPublishing.c" - gint _tmp14_; - gchar** _tmp15_; - gint _tmp15__length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp14_ = i; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp15_ = str_array; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp15__length1 = str_array_length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp12_ = _tmp14_ < _tmp15__length1; -#line 4373 "TumblrPublishing.c" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp4_ = FALSE; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (str_array_length1 != -1) { +#line 4593 "TumblrPublishing.c" + gint _tmp8_; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp8_ = i; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp7_ = _tmp8_ < str_array_length1; +#line 4599 "TumblrPublishing.c" } else { -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp12_ = FALSE; -#line 4377 "TumblrPublishing.c" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp7_ = FALSE; +#line 4603 "TumblrPublishing.c" } -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp12_) { -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp11_ = TRUE; -#line 4383 "TumblrPublishing.c" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (_tmp7_) { +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp6_ = TRUE; +#line 4609 "TumblrPublishing.c" } else { - gboolean _tmp16_ = FALSE; - gchar** _tmp17_; - gint _tmp17__length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp17_ = str_array; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp17__length1 = str_array_length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp17__length1 == -1) { -#line 4394 "TumblrPublishing.c" - gchar** _tmp18_; - gint _tmp18__length1; - gint _tmp19_; - const gchar* _tmp20_; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp18_ = str_array; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp18__length1 = str_array_length1; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp19_ = i; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp20_ = _tmp18_[_tmp19_]; -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp16_ = _tmp20_ != NULL; -#line 4409 "TumblrPublishing.c" + gboolean _tmp9_ = FALSE; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (str_array_length1 == -1) { +#line 4614 "TumblrPublishing.c" + gint _tmp10_; + const gchar* _tmp11_; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp10_ = i; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp11_ = str_array[_tmp10_]; +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp9_ = _tmp11_ != NULL; +#line 4623 "TumblrPublishing.c" } else { -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp16_ = FALSE; -#line 4413 "TumblrPublishing.c" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp9_ = FALSE; +#line 4627 "TumblrPublishing.c" } -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp11_ = _tmp16_; -#line 4417 "TumblrPublishing.c" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp6_ = _tmp9_; +#line 4631 "TumblrPublishing.c" } -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (!_tmp11_) { -#line 1084 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (!_tmp6_) { +#line 1098 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" break; -#line 4423 "TumblrPublishing.c" +#line 4637 "TumblrPublishing.c" } -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp22_ = str_array; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp22__length1 = str_array_length1; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp23_ = i; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp24_ = _tmp22_[_tmp23_]; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp24_ != NULL) { -#line 4435 "TumblrPublishing.c" - gchar** _tmp25_; - gint _tmp25__length1; - gint _tmp26_; - const gchar* _tmp27_; - gint _tmp28_; - gint _tmp29_; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp25_ = str_array; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp25__length1 = str_array_length1; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp26_ = i; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp27_ = _tmp25_[_tmp26_]; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp28_ = strlen ((const gchar*) _tmp27_); -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp29_ = _tmp28_; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp21_ = _tmp29_; -#line 4456 "TumblrPublishing.c" +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp13_ = i; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp14_ = str_array[_tmp13_]; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (_tmp14_ != NULL) { +#line 4645 "TumblrPublishing.c" + gint _tmp15_; + const gchar* _tmp16_; + gint _tmp17_; + gint _tmp18_; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp15_ = i; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp16_ = str_array[_tmp15_]; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp17_ = strlen ((const gchar*) _tmp16_); +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp18_ = _tmp17_; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp12_ = _tmp18_; +#line 4660 "TumblrPublishing.c" } else { -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp21_ = 0; -#line 4460 "TumblrPublishing.c" +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp12_ = 0; +#line 4664 "TumblrPublishing.c" } -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp30_ = len; -#line 1085 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - len = _tmp30_ + _tmp21_; -#line 4466 "TumblrPublishing.c" +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp19_ = len; +#line 1099 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + len = _tmp19_ + _tmp12_; +#line 4670 "TumblrPublishing.c" } } -#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp31_ = i; -#line 1087 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp31_ == 0) { -#line 4473 "TumblrPublishing.c" - gchar* _tmp32_; -#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp32_ = g_strdup (""); -#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - result = _tmp32_; -#line 1088 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp20_ = i; +#line 1101 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (_tmp20_ == 0) { +#line 4677 "TumblrPublishing.c" + gchar* _tmp21_; +#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp21_ = g_strdup (""); +#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + result = _tmp21_; +#line 1102 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 4481 "TumblrPublishing.c" +#line 4685 "TumblrPublishing.c" } -#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp33_ = i; -#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - str_array_length1 = _tmp33_; -#line 1090 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp34_ = str_array_length1; -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp35_ = len; -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp36_ = separator; -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp37_ = strlen ((const gchar*) _tmp36_); -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp38_ = _tmp37_; -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp39_ = i; -#line 1091 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - len = _tmp35_ + (_tmp38_ * (_tmp39_ - 1)); -#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp40_ = len; -#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp41_ = g_malloc (_tmp40_); -#line 1093 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - res = _tmp41_; -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp42_ = res; -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp43_ = str_array; -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp43__length1 = str_array_length1; -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp44_ = _tmp43_[0]; -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp45_ = g_stpcpy ((void*) _tmp42_, (const gchar*) _tmp44_); -#line 1094 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - ptr = _tmp45_; -#line 4519 "TumblrPublishing.c" +#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp22_ = i; +#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + str_array_length1 = _tmp22_; +#line 1104 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp23_ = str_array_length1; +#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp24_ = len; +#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp25_ = strlen ((const gchar*) separator); +#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp26_ = _tmp25_; +#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp27_ = i; +#line 1105 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + len = _tmp24_ + (_tmp26_ * (_tmp27_ - 1)); +#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp28_ = len; +#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp29_ = g_malloc (_tmp28_); +#line 1107 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + res = _tmp29_; +#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp30_ = res; +#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp31_ = str_array[0]; +#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp32_ = g_stpcpy ((void*) _tmp30_, (const gchar*) _tmp31_); +#line 1108 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + ptr = _tmp32_; +#line 4717 "TumblrPublishing.c" { - gboolean _tmp46_ = FALSE; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + gboolean _tmp33_ = FALSE; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" i = 1; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp46_ = TRUE; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp33_ = TRUE; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" while (TRUE) { -#line 4528 "TumblrPublishing.c" - gint _tmp48_; - gchar** _tmp49_; - gint _tmp49__length1; - void* _tmp50_; - const gchar* _tmp51_; - void* _tmp52_; - const gchar* _tmp53_ = NULL; - gchar** _tmp54_; - gint _tmp54__length1; - gint _tmp55_; - const gchar* _tmp56_; - void* _tmp60_; - void* _tmp61_; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (!_tmp46_) { -#line 4544 "TumblrPublishing.c" - gint _tmp47_; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp47_ = i; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - i = _tmp47_ + 1; -#line 4550 "TumblrPublishing.c" +#line 4726 "TumblrPublishing.c" + gint _tmp35_; + void* _tmp36_; + void* _tmp37_; + const gchar* _tmp38_ = NULL; + gint _tmp39_; + const gchar* _tmp40_; + void* _tmp43_; + void* _tmp44_; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (!_tmp33_) { +#line 4737 "TumblrPublishing.c" + gint _tmp34_; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp34_ = i; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + i = _tmp34_ + 1; +#line 4743 "TumblrPublishing.c" } -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp46_ = FALSE; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp48_ = i; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp49_ = str_array; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp49__length1 = str_array_length1; -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (!(_tmp48_ < _tmp49__length1)) { -#line 1095 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp33_ = FALSE; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp35_ = i; +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (!(_tmp35_ < str_array_length1)) { +#line 1109 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" break; -#line 4564 "TumblrPublishing.c" +#line 4753 "TumblrPublishing.c" } -#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp50_ = ptr; -#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp51_ = separator; -#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp52_ = g_stpcpy (_tmp50_, (const gchar*) _tmp51_); -#line 1096 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - ptr = _tmp52_; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp54_ = str_array; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp54__length1 = str_array_length1; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp55_ = i; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp56_ = _tmp54_[_tmp55_]; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - if (_tmp56_ != NULL) { -#line 4584 "TumblrPublishing.c" - gchar** _tmp57_; - gint _tmp57__length1; - gint _tmp58_; - const gchar* _tmp59_; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp57_ = str_array; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp57__length1 = str_array_length1; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp58_ = i; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp59_ = _tmp57_[_tmp58_]; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp53_ = (const gchar*) _tmp59_; -#line 4599 "TumblrPublishing.c" +#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp36_ = ptr; +#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp37_ = g_stpcpy (_tmp36_, (const gchar*) separator); +#line 1110 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + ptr = _tmp37_; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp39_ = i; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp40_ = str_array[_tmp39_]; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + if (_tmp40_ != NULL) { +#line 4767 "TumblrPublishing.c" + gint _tmp41_; + const gchar* _tmp42_; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp41_ = i; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp42_ = str_array[_tmp41_]; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp38_ = (const gchar*) _tmp42_; +#line 4776 "TumblrPublishing.c" } else { -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp53_ = ""; -#line 4603 "TumblrPublishing.c" +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp38_ = ""; +#line 4780 "TumblrPublishing.c" } -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp60_ = ptr; -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp61_ = g_stpcpy (_tmp60_, _tmp53_); -#line 1097 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - ptr = _tmp61_; -#line 4611 "TumblrPublishing.c" +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp43_ = ptr; +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp44_ = g_stpcpy (_tmp43_, _tmp38_); +#line 1111 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + ptr = _tmp44_; +#line 4788 "TumblrPublishing.c" } } -#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp62_ = res; -#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp45_ = res; +#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" res = NULL; -#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - result = (gchar*) _tmp62_; -#line 1100 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" +#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + result = (gchar*) _tmp45_; +#line 1114 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 4622 "TumblrPublishing.c" +#line 4799 "TumblrPublishing.c" } else { - gchar* _tmp63_; -#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - _tmp63_ = g_strdup (""); -#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" - result = _tmp63_; -#line 1102 "/usr/share/vala-0.36/vapi/glib-2.0.vapi" + gchar* _tmp46_; +#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + _tmp46_ = g_strdup (""); +#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" + result = _tmp46_; +#line 1116 "/usr/share/vala-0.40/vapi/glib-2.0.vapi" return result; -#line 4631 "TumblrPublishing.c" +#line 4808 "TumblrPublishing.c" } } -static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, GError** error) { +static void +publishing_tumblr_tumblr_publisher_upload_transaction_real_execute (PublishingRESTSupportTransaction* base, + GError** error) +{ PublishingTumblrTumblrPublisherUploadTransaction * self; gchar* payload = NULL; gsize payload_length = 0UL; @@ -4675,12 +4855,11 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( GeeMapIterator* _tmp38_; gboolean cont = FALSE; GeeMapIterator* _tmp39_; - gboolean _tmp40_; - SoupMessage* _tmp52_; + SoupMessage* _tmp50_; GError * _inner_error_ = NULL; #line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (base, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOAD_TRANSACTION, PublishingTumblrTumblrPublisherUploadTransaction); -#line 4672 "TumblrPublishing.c" +#line 4851 "TumblrPublishing.c" { SpitPublishingPublishable* _tmp0_; GFile* _tmp1_; @@ -4737,7 +4916,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( if (G_UNLIKELY (_inner_error_ != NULL)) { #line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_inner_error_->domain == G_FILE_ERROR) { -#line 4729 "TumblrPublishing.c" +#line 4908 "TumblrPublishing.c" goto __catch24_g_file_error; } #line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -4748,7 +4927,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( g_clear_error (&_inner_error_); #line 605 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 4740 "TumblrPublishing.c" +#line 4919 "TumblrPublishing.c" } #line 608 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp7_ = payload; @@ -4790,7 +4969,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( _tmp17__length1 = keywords_length1; #line 616 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" if (_tmp17_ != NULL) { -#line 4782 "TumblrPublishing.c" +#line 4961 "TumblrPublishing.c" gchar** _tmp18_; gint _tmp18__length1; gchar* _tmp19_; @@ -4804,7 +4983,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( _g_free0 (tags); #line 617 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" tags = _tmp19_; -#line 4796 "TumblrPublishing.c" +#line 4975 "TumblrPublishing.c" } #line 619 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp20_ = tags; @@ -4822,7 +5001,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( keywords = (_vala_array_free (keywords, keywords_length1, (GDestroyNotify) g_free), NULL); #line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (reqdata); -#line 4814 "TumblrPublishing.c" +#line 4993 "TumblrPublishing.c" } goto __finally24; __catch24_g_file_error: @@ -4839,7 +5018,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( _inner_error_ = _tmp23_; #line 622 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_error_free0 (e); -#line 4831 "TumblrPublishing.c" +#line 5010 "TumblrPublishing.c" goto __finally24; } __finally24: @@ -4853,7 +5032,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( _g_free0 (payload); #line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 4845 "TumblrPublishing.c" +#line 5024 "TumblrPublishing.c" } else { #line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (payload); @@ -4863,7 +5042,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( g_clear_error (&_inner_error_); #line 604 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 4855 "TumblrPublishing.c" +#line 5034 "TumblrPublishing.c" } } #line 627 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -4923,65 +5102,60 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( #line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _tmp39_ = i; #line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp40_ = gee_map_iterator_next (_tmp39_); -#line 639 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - cont = _tmp40_; + cont = gee_map_iterator_next (_tmp39_); #line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" while (TRUE) { -#line 4920 "TumblrPublishing.c" - gboolean _tmp41_; - SoupMessage* _tmp42_; - SoupMessageHeaders* _tmp43_; - GeeMapIterator* _tmp44_; - gpointer _tmp45_; - gchar* _tmp46_; - GeeMapIterator* _tmp47_; - gpointer _tmp48_; - gchar* _tmp49_; - GeeMapIterator* _tmp50_; - gboolean _tmp51_; +#line 5097 "TumblrPublishing.c" + gboolean _tmp40_; + SoupMessage* _tmp41_; + SoupMessageHeaders* _tmp42_; + GeeMapIterator* _tmp43_; + gpointer _tmp44_; + gchar* _tmp45_; + GeeMapIterator* _tmp46_; + gpointer _tmp47_; + gchar* _tmp48_; + GeeMapIterator* _tmp49_; #line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp41_ = cont; + _tmp40_ = cont; #line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - if (!_tmp41_) { + if (!_tmp40_) { #line 640 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" break; -#line 4938 "TumblrPublishing.c" +#line 5114 "TumblrPublishing.c" } #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp42_ = outbound_message; + _tmp41_ = outbound_message; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp43_ = _tmp42_->request_headers; + _tmp42_ = _tmp41_->request_headers; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp44_ = i; + _tmp43_ = i; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp45_ = gee_map_iterator_get_key (_tmp44_); + _tmp44_ = gee_map_iterator_get_key (_tmp43_); #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp46_ = (gchar*) _tmp45_; + _tmp45_ = (gchar*) _tmp44_; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp47_ = i; + _tmp46_ = i; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp48_ = gee_map_iterator_get_value (_tmp47_); + _tmp47_ = gee_map_iterator_get_value (_tmp46_); #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp49_ = (gchar*) _tmp48_; + _tmp48_ = (gchar*) _tmp47_; #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - soup_message_headers_append (_tmp43_, _tmp46_, _tmp49_); + soup_message_headers_append (_tmp42_, _tmp45_, _tmp48_); #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp49_); + _g_free0 (_tmp48_); #line 641 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _g_free0 (_tmp46_); -#line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp50_ = i; + _g_free0 (_tmp45_); #line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp51_ = gee_map_iterator_next (_tmp50_); + _tmp49_ = i; #line 642 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - cont = _tmp51_; -#line 4968 "TumblrPublishing.c" + cont = gee_map_iterator_next (_tmp49_); +#line 5142 "TumblrPublishing.c" } #line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp52_ = outbound_message; + _tmp50_ = outbound_message; #line 644 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp52_); + publishing_rest_support_transaction_set_message (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), _tmp50_); #line 646 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_rest_support_transaction_set_is_executed (G_TYPE_CHECK_INSTANCE_CAST (self, PUBLISHING_REST_SUPPORT_TYPE_TRANSACTION, PublishingRESTSupportTransaction), TRUE); #line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -5004,7 +5178,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( _g_free0 (payload); #line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 4996 "TumblrPublishing.c" +#line 5170 "TumblrPublishing.c" } else { #line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_object_unref0 (i); @@ -5022,7 +5196,7 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( g_clear_error (&_inner_error_); #line 648 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return; -#line 5014 "TumblrPublishing.c" +#line 5188 "TumblrPublishing.c" } } #line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -5035,24 +5209,30 @@ static void publishing_tumblr_tumblr_publisher_upload_transaction_real_execute ( request_arguments = (_vala_array_free (request_arguments, request_arguments_length1, (GDestroyNotify) publishing_rest_support_argument_unref), NULL); #line 601 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (payload); -#line 5027 "TumblrPublishing.c" +#line 5201 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_upload_transaction_class_init (PublishingTumblrTumblrPublisherUploadTransactionClass * klass) { +static void +publishing_tumblr_tumblr_publisher_upload_transaction_class_init (PublishingTumblrTumblrPublisherUploadTransactionClass * klass) +{ #line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_upload_transaction_parent_class = g_type_class_peek_parent (klass); #line 576 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" ((PublishingRESTSupportTransactionClass *) klass)->execute = (void (*) (PublishingRESTSupportTransaction *, GError**)) publishing_tumblr_tumblr_publisher_upload_transaction_real_execute; -#line 5036 "TumblrPublishing.c" +#line 5212 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_upload_transaction_instance_init (PublishingTumblrTumblrPublisherUploadTransaction * self) { +static void +publishing_tumblr_tumblr_publisher_upload_transaction_instance_init (PublishingTumblrTumblrPublisherUploadTransaction * self) +{ } -GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) { +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 }; @@ -5064,47 +5244,49 @@ GType publishing_tumblr_tumblr_publisher_upload_transaction_get_type (void) { } -PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) { +PublishingTumblrTumblrPublisherUploader* +publishing_tumblr_tumblr_publisher_uploader_construct (GType object_type, + PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable** publishables, + int publishables_length1, + const gchar* blog_url) +{ PublishingTumblrTumblrPublisherUploader* self = NULL; - PublishingRESTSupportOAuth1Session* _tmp0_; - SpitPublishingPublishable** _tmp1_; - gint _tmp1__length1; - const gchar* _tmp2_; - gchar* _tmp3_; + gchar* _tmp0_; #line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (PUBLISHING_REST_SUPPORT_OAUTH1_IS_SESSION (session), NULL); #line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_return_val_if_fail (blog_url != NULL, NULL); #line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp0_ = session; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1_ = publishables; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp1__length1 = publishables_length1; -#line 657 "/home/jens/Source/shotwell/plugins/shotwell-publishing/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); + self = (PublishingTumblrTumblrPublisherUploader*) publishing_rest_support_batch_uploader_construct (object_type, G_TYPE_CHECK_INSTANCE_CAST (session, PUBLISHING_REST_SUPPORT_TYPE_SESSION, PublishingRESTSupportSession), publishables, publishables_length1); #line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp2_ = blog_url; -#line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - _tmp3_ = g_strdup (_tmp2_); + _tmp0_ = g_strdup (blog_url); #line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" _g_free0 (self->priv->blog_url); #line 658 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" - self->priv->blog_url = _tmp3_; + self->priv->blog_url = _tmp0_; #line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return self; -#line 5085 "TumblrPublishing.c" +#line 5259 "TumblrPublishing.c" } -PublishingTumblrTumblrPublisherUploader* publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, SpitPublishingPublishable** publishables, int publishables_length1, const gchar* blog_url) { +PublishingTumblrTumblrPublisherUploader* +publishing_tumblr_tumblr_publisher_uploader_new (PublishingRESTSupportOAuth1Session* session, + SpitPublishingPublishable** publishables, + int publishables_length1, + const gchar* blog_url) +{ #line 656 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return publishing_tumblr_tumblr_publisher_uploader_construct (PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, session, publishables, publishables_length1, blog_url); -#line 5092 "TumblrPublishing.c" +#line 5271 "TumblrPublishing.c" } -static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, SpitPublishingPublishable* publishable) { +static PublishingRESTSupportTransaction* +publishing_tumblr_tumblr_publisher_uploader_real_create_transaction (PublishingRESTSupportBatchUploader* base, + SpitPublishingPublishable* publishable) +{ PublishingTumblrTumblrPublisherUploader * self; PublishingRESTSupportTransaction* result = NULL; PublishingRESTSupportSession* _tmp0_; @@ -5142,11 +5324,13 @@ static PublishingRESTSupportTransaction* publishing_tumblr_tumblr_publisher_uplo result = _tmp6_; #line 666 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" return result; -#line 5134 "TumblrPublishing.c" +#line 5316 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTumblrTumblrPublisherUploaderClass * klass) { +static void +publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTumblrTumblrPublisherUploaderClass * klass) +{ #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_uploader_parent_class = g_type_class_peek_parent (klass); #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -5155,11 +5339,13 @@ static void publishing_tumblr_tumblr_publisher_uploader_class_init (PublishingTu g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherUploaderPrivate)); #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" ((PublishingRESTSupportBatchUploaderClass *) klass)->create_transaction = (PublishingRESTSupportTransaction* (*) (PublishingRESTSupportBatchUploader *, SpitPublishingPublishable*)) publishing_tumblr_tumblr_publisher_uploader_real_create_transaction; -#line 5147 "TumblrPublishing.c" +#line 5331 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_uploader_instance_init (PublishingTumblrTumblrPublisherUploader * self) { +static void +publishing_tumblr_tumblr_publisher_uploader_instance_init (PublishingTumblrTumblrPublisherUploader * self) +{ gchar* _tmp0_; #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_UPLOADER_GET_PRIVATE (self); @@ -5167,11 +5353,13 @@ static void publishing_tumblr_tumblr_publisher_uploader_instance_init (Publishin _tmp0_ = g_strdup (""); #line 655 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->blog_url = _tmp0_; -#line 5159 "TumblrPublishing.c" +#line 5345 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * obj) { +static void +publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingRESTSupportBatchUploader * obj) +{ PublishingTumblrTumblrPublisherUploader * self; #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self = G_TYPE_CHECK_INSTANCE_CAST (obj, PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_TYPE_UPLOADER, PublishingTumblrTumblrPublisherUploader); @@ -5179,11 +5367,13 @@ static void publishing_tumblr_tumblr_publisher_uploader_finalize (PublishingREST _g_free0 (self->priv->blog_url); #line 654 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" PUBLISHING_REST_SUPPORT_BATCH_UPLOADER_CLASS (publishing_tumblr_tumblr_publisher_uploader_parent_class)->finalize (obj); -#line 5171 "TumblrPublishing.c" +#line 5359 "TumblrPublishing.c" } -GType publishing_tumblr_tumblr_publisher_uploader_get_type (void) { +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 }; @@ -5195,18 +5385,22 @@ GType publishing_tumblr_tumblr_publisher_uploader_get_type (void) { } -static void publishing_tumblr_tumblr_publisher_class_init (PublishingTumblrTumblrPublisherClass * klass) { +static void +publishing_tumblr_tumblr_publisher_class_init (PublishingTumblrTumblrPublisherClass * klass) +{ #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_parent_class = g_type_class_peek_parent (klass); #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" g_type_class_add_private (klass, sizeof (PublishingTumblrTumblrPublisherPrivate)); #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" G_OBJECT_CLASS (klass)->finalize = publishing_tumblr_tumblr_publisher_finalize; -#line 5194 "TumblrPublishing.c" +#line 5386 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) { +static void +publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interface_init (SpitPublishingPublisherIface * iface) +{ #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" publishing_tumblr_tumblr_publisher_spit_publishing_publisher_parent_iface = g_type_interface_peek_parent (iface); #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" @@ -5217,11 +5411,13 @@ static void publishing_tumblr_tumblr_publisher_spit_publishing_publisher_interfa iface->start = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_start; #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" iface->stop = (void (*) (SpitPublishingPublisher *)) publishing_tumblr_tumblr_publisher_real_stop; -#line 5209 "TumblrPublishing.c" +#line 5403 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTumblrPublisher * self) { +static void +publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTumblrPublisher * self) +{ gchar* _tmp0_; #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv = PUBLISHING_TUMBLR_TUMBLR_PUBLISHER_GET_PRIVATE (self); @@ -5255,11 +5451,13 @@ static void publishing_tumblr_tumblr_publisher_instance_init (PublishingTumblrTu _tmp0_ = g_strdup (""); #line 96 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" self->priv->username = _tmp0_; -#line 5247 "TumblrPublishing.c" +#line 5443 "TumblrPublishing.c" } -static void publishing_tumblr_tumblr_publisher_finalize (GObject * obj) { +static void +publishing_tumblr_tumblr_publisher_finalize (GObject * obj) +{ PublishingTumblrTumblrPublisher * self; SpitPublishingAuthenticator* _tmp0_; guint _tmp1_; @@ -5297,11 +5495,13 @@ static void publishing_tumblr_tumblr_publisher_finalize (GObject * obj) { _g_object_unref0 (self->priv->authenticator); #line 86 "/home/jens/Source/shotwell/plugins/shotwell-publishing/TumblrPublishing.vala" G_OBJECT_CLASS (publishing_tumblr_tumblr_publisher_parent_class)->finalize (obj); -#line 5289 "TumblrPublishing.c" +#line 5487 "TumblrPublishing.c" } -GType publishing_tumblr_tumblr_publisher_get_type (void) { +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 }; @@ -5315,7 +5515,11 @@ GType publishing_tumblr_tumblr_publisher_get_type (void) { } -static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) { +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) { @@ -5327,7 +5531,11 @@ static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNoti } -static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) { +static void +_vala_array_free (gpointer array, + gint array_length, + GDestroyNotify destroy_func) +{ _vala_array_destroy (array, array_length, destroy_func); g_free (array); } -- cgit v1.2.3